MCPcopy Create free account
hub / github.com/apache/thrift / read

Method read

lib/cpp/src/thrift/protocol/TJSONProtocol.cpp:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 }
354
355 uint32_t read(TJSONProtocol::LookaheadReader& reader) override {
356 if (first_) {
357 first_ = false;
358 colon_ = true;
359 return 0;
360 } else {
361 uint8_t ch = (colon_ ? kJSONPairSeparator : kJSONElemSeparator);
362 colon_ = !colon_;
363 return readSyntaxChar(reader, ch);
364 }
365 }
366
367 // Numbers must be turned into strings if they are the key part of a pair
368 bool escapeNum() override { return colon_; }

Callers

nothing calls this directly

Calls 1

readSyntaxCharFunction · 0.85

Tested by

no test coverage detected