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

Method writeBytes

MonaCore/sources/JSONWriter.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98UInt64 JSONWriter::writeBytes(const UInt8* data,UInt32 size) {
99 start();
100
101 packet.write(EXPAND("{\"__raw\":\""));
102 Util::ToBase64(data, size, packet,true);
103 packet.write("\"}");
104
105 end();
106 return 0;
107}
108
109void JSONWriter::start(bool isContainer) {
110

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected