Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

next

Public Function
std.os.uefi.protocol.device_path.DevicePath.next
pub fn next(self: *const DevicePath) ?*const DevicePath

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

Params

File

os/uefi/protocol/device_path.zig:28
28
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);
    }