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

Method writeListBegin

lib/cpp/src/thrift/protocol/TDebugProtocol.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263uint32_t TDebugProtocol::writeListBegin(const TType elemType, const uint32_t size) {
264 // TODO(dreiss): Optimize short arrays.
265 uint32_t bsize = 0;
266 bsize += startItem();
267 bsize += writePlain(
268 "list<" + fieldTypeName(elemType) + ">"
269 "[" + to_string(size) + "] {\n");
270 indentUp();
271 write_state_.push_back(LIST);
272 list_idx_.push_back(0);
273 return bsize;
274}
275
276uint32_t TDebugProtocol::writeListEnd() {
277 indentDown();

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected