MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / map_serialized

Method map_serialized

src/json.cpp:545–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void json_t::map_serialized(std::function<void(const char*source, size_t length)> callback) const
546{
547 size_t len;
548 char *result = yyjson_mut_write(this->doc, 0, &len);
549 callback(result, len);
550 free(result);
551}
552
553std::string json_t::serialize() const
554{

Callers 2

send_jsonMethod · 0.80
json_to_stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected