MCPcopy Create free account
hub / github.com/JayXon/Leanify / LeanifyFile

Function LeanifyFile

leanify.cpp:198–204  ·  view source on GitHub ↗

Leanify the file and move the file ahead size_leanified bytes the new location of the file will be file_pointer - size_leanified it's designed this way to avoid extra memmove or memcpy return new size

Source from the content-addressed store, hash-verified

196// it's designed this way to avoid extra memmove or memcpy
197// return new size
198size_t LeanifyFile(void *file_pointer, size_t file_size, size_t size_leanified /*= 0*/, const string& filename /*= ""*/)
199{
200 Format *f = GetType(file_pointer, file_size, filename);
201 size_t r = f->Leanify(size_leanified);
202 delete f;
203 return r;
204}
205
206
207size_t ZlibRecompress(void *src, size_t src_len, size_t size_leanified /*= 0*/)

Callers 9

ProcessFileFunction · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85
LeanifyMethod · 0.85

Calls 2

GetTypeFunction · 0.85
LeanifyMethod · 0.45

Tested by

no test coverage detected