| 87 | } |
| 88 | |
| 89 | std::string ObjectEntryDescriptor::ToString() const |
| 90 | { |
| 91 | if (Generation == ObjectGeneration::DAT) |
| 92 | { |
| 93 | char buffer[32]; |
| 94 | std::snprintf(&buffer[0], 9, "%08X", Entry.flags); |
| 95 | buffer[8] = '|'; |
| 96 | std::memcpy(&buffer[9], Entry.name, 8); |
| 97 | buffer[17] = '|'; |
| 98 | std::snprintf(&buffer[18], 9, "%8X", Entry.checksum); |
| 99 | return std::string(buffer); |
| 100 | } |
| 101 | else |
| 102 | { |
| 103 | return std::string(GetName()); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | static uint32_t ParseHex(std::string_view x) |
| 108 | { |
no test coverage detected