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

Function SaveStr

library/cpp/chromium_trace/saveload.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace {
13 void SaveStr(IOutputStream* out, TStringBuf str) {
14 ::SaveSize(out, str.size());
15 ::SavePodArray(out, str.data(), str.size());
16 }
17
18 void LoadStr(IInputStream* in, TStringBuf& str, TMemoryPool& pool) {
19 size_t size = ::LoadSize(in);

Callers 2

operator()Method · 0.85
SaveMethod · 0.85

Calls 4

SaveSizeFunction · 0.85
SavePodArrayFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected