MCPcopy Create free account
hub / github.com/diasurgical/devilution / WriteHashTable

Method WriteHashTable

Source/mpqapi.cpp:260–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 bool WriteHashTable()
261 {
262 Encrypt(sgpHashTbl, kHashEntrySize, Hash("(hash table)", 3));
263 const bool success = stream.write(reinterpret_cast<const char *>(sgpHashTbl), kHashEntrySize);
264 Decrypt(sgpHashTbl, kHashEntrySize, Hash("(hash table)", 3));
265 return success;
266 }
267};
268
269Archive cur_archive;

Callers

nothing calls this directly

Calls 4

EncryptFunction · 0.85
HashFunction · 0.85
DecryptFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected