MCPcopy Create free account
hub / github.com/ceph/ceph / decompress

Method decompress

src/test/compressor/compressor_example.h:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 int decompress(const bufferlist &in, bufferlist &out, std::optional<int32_t> compressor_message) override
43 {
44 out = in;
45 return 0;
46 }
47 int decompress(bufferlist::const_iterator &p, size_t compressed_len, bufferlist &out, std::optional<int32_t> compressor_message) override
48 {
49 p.copy(std::min<size_t>(p.get_remaining(), compressed_len), out);

Callers 3

TEST_PFunction · 0.45
test_decompressFunction · 0.45
TESTFunction · 0.45

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected