MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / build

Method build

src/QLProjection.actor.cpp:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300bson::BSONObj BOBObj::build() {
301 if (isArrayLength >= 0) {
302 bool compact = isArrayLength == 0;
303 while (!compact && currentLoc < isArrayLength) {
304 bob->appendNull(std::to_string(currentLoc));
305 currentLoc++;
306 }
307 return bob->obj();
308 } else {
309 return bob->obj();
310 }
311}

Calls

no outgoing calls

Tested by

no test coverage detected