MCPcopy Create free account
hub / github.com/apple/foundationdb / absorb

Method absorb

fdbclient/include/fdbclient/JSONDoc.h:248–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 void absorb(const JSONDoc& doc) {
249 if (wpObj == nullptr)
250 throw std::runtime_error("JSON Object not writable");
251
252 if (doc.pObj == nullptr)
253 throw std::runtime_error("JSON Object not readable");
254
255 mergeInto(*wpObj, *doc.pObj);
256 }
257
258 // Returns whether or not a "path" exists.
259 // Returns true if all elements along path exist

Calls

no outgoing calls

Tested by

no test coverage detected