MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / verify

Method verify

ogsr_engine/xrCore/xrstring.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void verify() const
62 {
63 Msg("strings verify started");
64 for (auto value : buffer)
65 {
66 while (value)
67 {
68 const auto crc = crc32(value->value, value->dwLength);
69 string32 crc_str;
70 R_ASSERT(crc == value->dwCRC, "CorePanic: read-only memory corruption (shared_strings)", _itoa(value->dwCRC, crc_str, 16));
71 R_ASSERT(value->dwLength == xr_strlen(value->value), "CorePanic: read-only memory corruption (shared_strings, internal structures)", value->value);
72 value = value->next;
73 }
74 }
75 Msg("strings verify completed");
76 }
77
78 void dump(FILE* f) const
79 {

Callers

nothing calls this directly

Calls 3

MsgFunction · 0.85
crc32Function · 0.85
xr_strlenFunction · 0.70

Tested by

no test coverage detected