DoxigAlpha

next

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

Function parameters

Parameters

#
self:*const DevicePath

Type definitions in this namespace

Types

#

Source

Implementation

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

    return next_node;
}