Function next [src]

Returns the next DevicePath node in the sequence, if any.

Prototype

pub fn next(self: *DevicePath) ?*DevicePath

Parameters

self: *DevicePath

Source

pub fn next(self: *DevicePath) ?*DevicePath { if (self.type == .end and @as(uefi.DevicePath.End.Subtype, @enumFromInt(self.subtype)) == .end_entire) return null; return @as(*DevicePath, @ptrCast(@as([*]u8, @ptrCast(self)) + self.length)); }