Lines Matching refs:GPTHeader
448 int GPTData::CheckHeaderCRC(struct GPTHeader* header, int warn) {
468 } else if ((hSize > sizeof(GPTHeader)) && warn) {
469 cout << "\aCaution! Header size for CRC check is " << hSize << ", which is greater than " << sizeof(GPTHeader) << ".\n";
476 if (hSize < sizeof(GPTHeader))
479 memcpy(temp, header, sizeof(GPTHeader));
502 if (mainHeader.headerSize > sizeof(GPTHeader))
917 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) {
919 GPTHeader tempHeader;
946 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) {
986 int GPTData::CheckTable(struct GPTHeader *header) {
989 GPTHeader *otherHeader;
1219 int GPTData::SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector) {
2311 void GPTData::ReverseHeaderBytes(struct GPTHeader* header) {
2446 if (sizeof(struct GPTHeader) != 512) {
2447 cerr << "GPTHeader is " << sizeof(GPTHeader) << " bytes, should be 512 bytes; aborting!\n";