MCPcopy Create free account
hub / github.com/beefytech/Beef / Compression_Decompress

Function Compression_Decompress

BeefySysLib/util/Compression.cpp:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116BF_EXPORT bool BF_CALLTYPE Compression_Decompress(void* ptr, intptr size, void** outPtr, intptr* outSize)
117{
118 auto& outData = *gCompression_TLDataReturn.Get();
119 outData.Reserve(128);
120 if (!Compression::Decompress(Span<uint8>((uint8*)ptr, size), outData))
121 return false;
122 *outPtr = outData.mVals;
123 *outSize = outData.mSize;
124 return true;
125}

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
ReserveMethod · 0.45

Tested by

no test coverage detected