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

Method Parse

library/cpp/http/push_parser/http_parser.h:54–62  ·  view source on GitHub ↗

@return true on end parsing (GetExtraDataSize() return amount not used bytes) throw exception on bad http format (unsupported encoding, etc) sz == 0 signaling end of input stream

Source from the content-addressed store, hash-verified

52 /// throw exception on bad http format (unsupported encoding, etc)
53 /// sz == 0 signaling end of input stream
54 bool Parse(const char* data, size_t sz) {
55 if (ParseImpl(data, sz)) {
56 if (DecodeContent_) {
57 DecodeContent(DecodedContent_);
58 }
59 return true;
60 }
61 return false;
62 }
63
64 const char* Data() const noexcept {
65 return Data_;

Callers 2

ParseFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected