extern structstd.os.uefi.device_path.DevicePath.BiosBootSpecification.BBS101DevicePath[src]

Fields

type: DevicePath.Type
subtype: Subtype
length: u16 align(1)
device_type: u16 align(1)
status_flag: u16 align(1)

Functions

FunctiongetDescription[src]

pub fn getDescription(self: *const BBS101DevicePath) [*:0]const u8

Parameters

self: *const BBS101DevicePath

Source Code

Source code
pub fn getDescription(self: *const BBS101DevicePath) [*:0]const u8 {
    return @as([*:0]const u8, @ptrCast(self)) + @sizeOf(BBS101DevicePath);
}

Source Code

Source code
pub const BBS101DevicePath = extern struct {
    type: DevicePath.Type,
    subtype: Subtype,
    length: u16 align(1),
    device_type: u16 align(1),
    status_flag: u16 align(1),

    pub fn getDescription(self: *const BBS101DevicePath) [*:0]const u8 {
        return @as([*:0]const u8, @ptrCast(self)) + @sizeOf(BBS101DevicePath);
    }
}