union End [src]

Fields

end_entire: *const EndEntireDevicePath
end_this_instance: *const EndThisInstanceDevicePath

Members

Source

pub const End = union(Subtype) { end_entire: *const EndEntireDevicePath, end_this_instance: *const EndThisInstanceDevicePath, pub const Subtype = enum(u8) { end_entire = 0xff, end_this_instance = 0x01, _, }; pub const EndEntireDevicePath = extern struct { type: DevicePath.Type, subtype: Subtype, length: u16 align(1), }; comptime { assert(4 == @sizeOf(EndEntireDevicePath)); assert(1 == @alignOf(EndEntireDevicePath)); assert(0 == @offsetOf(EndEntireDevicePath, "type")); assert(1 == @offsetOf(EndEntireDevicePath, "subtype")); assert(2 == @offsetOf(EndEntireDevicePath, "length")); } pub const EndThisInstanceDevicePath = extern struct { type: DevicePath.Type, subtype: Subtype, length: u16 align(1), }; comptime { assert(4 == @sizeOf(EndEntireDevicePath)); assert(1 == @alignOf(EndEntireDevicePath)); assert(0 == @offsetOf(EndEntireDevicePath, "type")); assert(1 == @offsetOf(EndEntireDevicePath, "subtype")); assert(2 == @offsetOf(EndEntireDevicePath, "length")); } }