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

Method WriteBlockTable

Source/mpqapi.cpp:252–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 }
251
252 bool WriteBlockTable()
253 {
254 Encrypt(sgpBlockTbl, kBlockEntrySize, Hash("(block table)", 3));
255 const bool success = stream.write(reinterpret_cast<const char *>(sgpBlockTbl), kBlockEntrySize);
256 Decrypt(sgpBlockTbl, kBlockEntrySize, Hash("(block table)", 3));
257 return success;
258 }
259
260 bool WriteHashTable()
261 {

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