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

Method ProceedToNextChunk

library/cpp/http/io/chunk.cpp:113–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 inline bool ProceedToNextChunk() {
114 TString len(Slave_->ReadLine());
115
116 if (len.empty()) {
117 /*
118 * skip crlf from previous chunk
119 */
120
121 len = Slave_->ReadLine();
122 }
123
124 Pending_ = ParseHex(len);
125
126 if (Pending_) {
127 return true;
128 }
129
130 if (Trailers_) {
131 Trailers_->ConstructInPlace(Slave_);
132 }
133 LastChunkReaded_ = true;
134
135 return false;
136 }
137
138private:
139 IInputStream* Slave_;

Callers

nothing calls this directly

Calls 3

ParseHexFunction · 0.70
ReadLineMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected