MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / start

Method start

MonaCore/sources/JSONWriter.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void JSONWriter::start(bool isContainer) {
110
111 // remove the last ']'
112 if (_layers == 0)
113 packet.clear(packet.size() - 1);
114
115
116 if(!_first)
117 packet.write8(',');
118
119 if (isContainer) {
120 _first=true;
121 ++_layers;
122 }
123}
124
125void JSONWriter::end(bool isContainer) {
126

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected