MCPcopy Create free account
hub / github.com/defold/defold / MaxCompressedSize

Function MaxCompressedSize

engine/dlib/src/dlib/lz4.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 Result MaxCompressedSize(int uncompressed_size, int *max_compressed_size)
54 {
55 *max_compressed_size = LZ4_compressBound(uncompressed_size);
56
57 Result r;
58 if(*max_compressed_size == 0)
59 r = dmLZ4::RESULT_INPUT_SIZE_TOO_LARGE;
60 else
61 r = dmLZ4::RESULT_OK;
62
63 return r;
64 }
65}
66
67extern "C" {

Callers 2

LZ4MaxCompressedSizeFunction · 0.85
TESTFunction · 0.85

Calls 1

LZ4_compressBoundFunction · 0.85

Tested by 1

TESTFunction · 0.68