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

Method dataToJson

src/core/Blank.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 json_t* dataToJson() override {
21 json_t* rootJ = json_object();
22 json_object_set_new(rootJ, "width", json_integer(width));
23 return rootJ;
24 }
25
26 void dataFromJson(json_t* rootJ) override {
27 json_t* widthJ = json_object_get(rootJ, "width");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected