MCPcopy Create free account
hub / github.com/acl-dev/acl / json

Method json

lib_acl_cpp/src/stdlib/json.cpp:472–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470//////////////////////////////////////////////////////////////////////////
471
472json::json(const char* data /* NULL */, dbuf_guard* dbuf /* NULL */)
473{
474 if (dbuf) {
475 dbuf_ = dbuf;
476 } else {
477#define JSON_DBUF_NBLOCK 1
478 dbuf_ = dbuf_internal_ = NEW dbuf_guard(JSON_DBUF_NBLOCK);
479 }
480
481 json_ = acl_json_dbuf_alloc(dbuf_->get_dbuf().get_dbuf());
482 root_ = NULL;
483 buf_ = NULL;
484 iter_ = NULL;
485
486 if (data && *data) {
487 update(data);
488 }
489}
490
491json::json(const json_node& node, dbuf_guard* dbuf /* NULL */)
492{

Callers

nothing calls this directly

Calls 6

acl_json_dbuf_allocFunction · 0.85
acl_json_dbuf_createFunction · 0.85
get_dbufMethod · 0.80
get_json_nodeMethod · 0.80
dbuf_guardClass · 0.50
updateFunction · 0.50

Tested by

no test coverage detected