MCPcopy Create free account
hub / github.com/catboost/catboost / Encode

Method Encode

library/cpp/blockcodecs/core/codecs.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void ICodec::Encode(const TData& in, TBuffer& out) const {
113 const size_t maxLen = MaxCompressedLength(in);
114
115 out.Reserve(maxLen);
116 out.Resize(Compress(in, out.Data()));
117}
118
119void ICodec::Decode(const TData& in, TBuffer& out) const {
120 const size_t len = GetDecompressedLength(in);

Callers 8

TestAllAtOnceFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Base64EncodeFunction · 0.45
CompressMethod · 0.45
MallocFunction · 0.45
posix_memalignFunction · 0.45
balloc.hFile · 0.45

Calls 7

MaxCompressedLengthFunction · 0.85
CompressFunction · 0.50
ReserveMethod · 0.45
ResizeMethod · 0.45
DataMethod · 0.45
beginMethod · 0.45
resizeMethod · 0.45

Tested by 1

TestAllAtOnceFunction · 0.36