MCPcopy Create free account
hub / github.com/Tencent/UnLua / encode

Method encode

Plugins/UnLuaExtensions/LuaRapidjson/Source/src/rapidjson.cpp:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319public:
320 template<typename Stream>
321 void encode(lua_State* L, Stream* s, int idx)
322 {
323 if (pretty)
324 {
325 PrettyWriter<Stream> writer(*s);
326 encodeValue(L, &writer, idx);
327 }
328 else
329 {
330 Writer<Stream> writer(*s);
331 encodeValue(L, &writer, idx);
332 }
333 }
334};
335
336

Callers 2

json_encodeFunction · 0.80
json_dumpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected