MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetData

Method GetData

xuocore/uodata.cpp:275–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275std::vector<uint8_t> CUopMappedFile::GetData(const UopFileEntry *block)
276{
277 assert(block);
278 uint8_t *src = Start + block->Offset + block->MetadataSize;
279 std::vector<uint8_t> dst(block->DecompressedSize, 0);
280 if (DecompressBlock(block, dst.data(), src))
281 {
282 return dst;
283 }
284 dst.clear();
285 return dst;
286}
287
288bool CFileManager::Load()
289{

Callers 6

LoadStringDictionaryMethod · 0.80
LoadIndexFilesMethod · 0.80
LoadMultiMethod · 0.80
LoadMultiMethod · 0.80
LoadSpeechMethod · 0.80

Calls 3

DecompressBlockFunction · 0.85
dataMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected