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

Method TResponce

library/cpp/neh/tcp.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143 struct TResponce: public TIntrusiveListItem<TResponce> {
144 inline TResponce(const TLinkRef& link, TData& data, TStringBuf reqid)
145 : Link(link)
146 {
147 Data.swap(data);
148
149 TMemoryOutput out(Buf, sizeof(Buf));
150
151 ::Save(&out, (ui32)(reqid.size() + Data.size()));
152 out.Write(reqid.data(), reqid.size());
153
154 Y_ASSERT(reqid.size() == 16);
155
156 Len = out.Buf() - Buf;
157 }
158
159 inline void Serialize(TParts& parts) {
160 parts.Push(TStringBuf(Buf, Len));

Callers

nothing calls this directly

Calls 6

SaveFunction · 0.50
swapMethod · 0.45
sizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
BufMethod · 0.45

Tested by

no test coverage detected