Polyphase Game Engine
Loading...
Searching...
No Matches
JsonHelpers.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <string>
#include "PolyphaseAPI.h"

Go to the source code of this file.

Namespaces

namespace  rapidjson
 

Typedefs

using rapidjson::Document = GenericDocument< UTF8< char >, MemoryPoolAllocator< CrtAllocator >, CrtAllocator >
 
using rapidjson::Value = GenericValue< UTF8< char >, MemoryPoolAllocator< CrtAllocator > >
 

Functions

POLYPHASE_API bool ParseJsonBytes (const uint8_t *data, size_t size, rapidjson::Document &outDoc, std::string &outError)
 
POLYPHASE_API void RapidJsonValueToLua (lua_State *L, const rapidjson::Value &v)
 
POLYPHASE_API bool LuaToRapidJsonValue (lua_State *L, int idx, rapidjson::Value &outVal, rapidjson::Document &doc)
 

Function Documentation

◆ LuaToRapidJsonValue()

POLYPHASE_API bool LuaToRapidJsonValue ( lua_State *  L,
int  idx,
rapidjson::Value outVal,
rapidjson::Document doc 
)

◆ ParseJsonBytes()

POLYPHASE_API bool ParseJsonBytes ( const uint8_t *  data,
size_t  size,
rapidjson::Document outDoc,
std::string &  outError 
)

◆ RapidJsonValueToLua()

POLYPHASE_API void RapidJsonValueToLua ( lua_State *  L,
const rapidjson::Value v 
)