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

Method TRequest

library/cpp/neh/tcp.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176 struct TRequest: public IRequest {
177 inline TRequest(const TLinkRef& link, IInputStream& in, size_t len)
178 : Link(link)
179 {
180 Buf.Proceed(len);
181 in.Load(Buf.Data(), Buf.Size());
182 if ((ServiceBegin() - Buf.Data()) + ServiceLen() > Buf.Size()) {
183 throw yexception() << "invalid request (service len)";
184 }
185 }
186
187 TStringBuf Scheme() const override {
188 return TStringBuf("tcp");

Callers

nothing calls this directly

Calls 5

yexceptionClass · 0.85
ProceedMethod · 0.45
LoadMethod · 0.45
DataMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected