Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
SceneFormat::SceneMsgPackParser Class Reference

Embedded-friendly MessagePack parser for scene files No dynamic allocation, fixed stack depth. More...

#include <SceneMessagePack.h>

Public Member Functions

 SceneMsgPackParser (const uint8_t *data, size_t size)
bool ParseScene (Scene *scene)
DekiObjectParseSceneInstance ()
bool ReadByte (uint8_t &value)
bool PeekByte (uint8_t &value)
bool ReadBytes (uint8_t *buffer, size_t count)
bool ReadInt (int32_t &value)
bool ReadFloat (float &value)
bool ReadBool (bool &value)
bool ReadString (const char *&str, uint16_t &length)
bool SkipValue ()
bool ReadMapSize (uint32_t &size)
bool ReadArraySize (uint32_t &size)
bool ReadBE16 (uint16_t &value)
bool ReadBE32 (uint32_t &value)
bool ReadContainerSize (uint8_t fixPrefix, uint8_t tag16, uint8_t tag32, uint32_t &size)
bool StringEquals (const char *msgpackStr, uint16_t length, const char *cstr)

Static Public Attributes

static constexpr int kMaxDepth = 64

Detailed Description

Embedded-friendly MessagePack parser for scene files No dynamic allocation, fixed stack depth.

Constructor & Destructor Documentation

◆ SceneMsgPackParser()

SceneFormat::SceneMsgPackParser::SceneMsgPackParser ( const uint8_t * data,
size_t size )

Member Function Documentation

◆ ParseScene()

bool SceneFormat::SceneMsgPackParser::ParseScene ( Scene * scene)

◆ ParseSceneInstance()

DekiObject * SceneFormat::SceneMsgPackParser::ParseSceneInstance ( )

◆ ReadByte()

bool SceneFormat::SceneMsgPackParser::ReadByte ( uint8_t & value)

◆ PeekByte()

bool SceneFormat::SceneMsgPackParser::PeekByte ( uint8_t & value)

◆ ReadBytes()

bool SceneFormat::SceneMsgPackParser::ReadBytes ( uint8_t * buffer,
size_t count )

◆ ReadInt()

bool SceneFormat::SceneMsgPackParser::ReadInt ( int32_t & value)

◆ ReadFloat()

bool SceneFormat::SceneMsgPackParser::ReadFloat ( float & value)

◆ ReadBool()

bool SceneFormat::SceneMsgPackParser::ReadBool ( bool & value)

◆ ReadString()

bool SceneFormat::SceneMsgPackParser::ReadString ( const char *& str,
uint16_t & length )

◆ SkipValue()

bool SceneFormat::SceneMsgPackParser::SkipValue ( )

◆ ReadMapSize()

bool SceneFormat::SceneMsgPackParser::ReadMapSize ( uint32_t & size)

◆ ReadArraySize()

bool SceneFormat::SceneMsgPackParser::ReadArraySize ( uint32_t & size)

◆ ReadBE16()

bool SceneFormat::SceneMsgPackParser::ReadBE16 ( uint16_t & value)

◆ ReadBE32()

bool SceneFormat::SceneMsgPackParser::ReadBE32 ( uint32_t & value)

◆ ReadContainerSize()

bool SceneFormat::SceneMsgPackParser::ReadContainerSize ( uint8_t fixPrefix,
uint8_t tag16,
uint8_t tag32,
uint32_t & size )

◆ StringEquals()

bool SceneFormat::SceneMsgPackParser::StringEquals ( const char * msgpackStr,
uint16_t length,
const char * cstr )

Member Data Documentation

◆ kMaxDepth

int SceneFormat::SceneMsgPackParser::kMaxDepth = 64
staticconstexpr

The documentation for this class was generated from the following file: