MCPcopy Create free account
hub / github.com/VCVRack/Rack / dataToJson

Method dataToJson

src/core/Notes.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 json_t* dataToJson() override {
27 json_t* rootJ = json_object();
28 json_object_set_new(rootJ, "text", json_stringn(text.c_str(), text.size()));
29 return rootJ;
30 }
31
32 void dataFromJson(json_t* rootJ) override {
33 json_t* textJ = json_object_get(rootJ, "text");

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected