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

Function Compression_Compress

BeefySysLib/util/Compression.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103//////////////////////////////////////////////////////////////////////////
104
105BF_EXPORT bool BF_CALLTYPE Compression_Compress(void* ptr, intptr size, void** outPtr, intptr* outSize)
106{
107 auto& outData = *gCompression_TLDataReturn.Get();
108 outData.Reserve(128);
109 if (!Compression::Compress(Span<uint8>((uint8*)ptr, size), outData))
110 return false;
111 *outPtr = outData.mVals;
112 *outSize = outData.mSize;
113 return true;
114}
115
116BF_EXPORT bool BF_CALLTYPE Compression_Decompress(void* ptr, intptr size, void** outPtr, intptr* outSize)
117{

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
ReserveMethod · 0.45

Tested by

no test coverage detected