How is data stored on disk? - EFI GUID

前端 未结 1 1888
萌比男神i
萌比男神i 2021-01-21 21:53

I posted this question earlier on SuperUser but I feel it is more suited for programmers.

If I understand correctly, according to GPT, the first 16 bytes of LBA 2 is the

1条回答
  •  梦毁少年i
    2021-01-21 22:24

    EFI_GUID datatype is declared as follows:

    typedef struct {
      UINT32  Data1;
      UINT16  Data2;
      UINT16  Data3;
      UINT8   Data4[8];
    } EFI_GUID;
    

    Because original EFI architectures (IA64 LE and IA32e) were little-endian by default, so are the integers. I haven't really seen an UEFI implementation on big-endian machine, so I don't know if standard GUIDs will be stored otherwise.

    0 讨论(0)
提交回复
热议问题