pub fn next(self: *const DevicePath) ?*const DevicePath self: *const DevicePath28
29
30
31
32
33 pub fn next(self: *const DevicePath) ?*const DevicePath {
const subtype: uefi.DevicePath.End.Subtype = @fromBackingInt(@intCast(self.subtype));
if (self.type == .end and subtype == .end_entire) return null;
const bytes: [*]const u8 = @ptrCast(self);
return @ptrCast(bytes + self.length);
}
Returns the next DevicePath node in the sequence, if any.