Zig 0.17.0-dev (Split by item) 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.
std › os › uefi › device_path › DevicePath › Media › HardDriveDevicePath Public Struct HardDriveDevicePath Doc Source Public Struct std.os.uefi.device_path.DevicePath.Media.HardDriveDevicePath
pub const HardDriveDevicePath = extern struct Fields Types File os/uefi/device_path.zig: 745
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767 pub const HardDriveDevicePath = extern struct {
pub const Format = enum (u8 ) {
legacy_mbr = 0x01 ,
guid_partition_table = 0x02 ,
};
pub const SignatureType = enum (u8 ) {
no_signature = 0x00 ,
/// "32-bit signature from address 0x1b8 of the type 0x01 MBR"
mbr_signature = 0x01 ,
guid_signature = 0x02 ,
};
type : DevicePath .Type ,
subtype : Subtype ,
length : u16 align (1 ),
partition_number : u32 align (1 ),
partition_start : u64 align (1 ),
partition_size : u64 align (1 ),
partition_signature : [16 ]u8 ,
partition_format : Format ,
signature_type : SignatureType ,
}