MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / compress

Method compress

examples/server/httplib.h:3186–3190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3184}
3185
3186inline bool nocompressor::compress(const char *data, size_t data_length,
3187 bool /*last*/, Callback callback) {
3188 if (!data_length) { return true; }
3189 return callback(data, data_length);
3190}
3191
3192#ifdef CPPHTTPLIB_ZLIB_SUPPORT
3193inline gzip_compressor::gzip_compressor() {

Callers 3

write_content_chunkedFunction · 0.80
apply_rangesMethod · 0.80

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected