150 int vget(
const char* fmt, va_list* argList);
191 int get(
const char* fmt, ...);
216 int startServiceLevel;
229#define UBJD_MNUM(o, m) #m, &(o)->m
234#define UBJD_MSTR(o, m) #m, &(o)->m, sizeof((o)->m)
239#define UBJD_ASTR(o, m) &(o)->m, sizeof((o)->m)
261 UBJDecoder* o,
U8* buf,
int bufSize,
int extraStackLen);
270 va_start(argList, fmt);
int UBJDecoder_get(UBJDecoder *o, const char *fmt,...)
Build a pointer value tree that is used by the integrated parser callback function when the parser fe...
UBJDecoderS
UBJDecoder Status Codes.
Definition: ubjsonex.h:53
int UBJDecoder_vget(UBJDecoder *o, const char *fmt, va_list *argList)
Build the schema using a va_list; see UBJDecoder::get for format rules.
int vget(const char *fmt, va_list *argList)
See UBJDecoder::get for details.
Definition: ubjsonex.h:264
void UBJDecoder_constructor(UBJDecoder *o, U8 *buf, int bufSize, int extraStackLen)
Create/initialize a UBJDecoder instance.
UBJDecoder UBJDecoder
UBJDecoder implements the parser callback API UBJPIntf and builds a pointer value tree when UBJDecode...
UBJDecoder(U8 *buf, int bufSize, int extraStackLen=0)
Create/initialize a UBJDecoder instance.
Definition: ubjsonex.h:275
int get(const char *fmt,...)
Build a pointer value tree that is used by the integrated parser callback function when the parser fe...
Definition: ubjsonex.h:267
@ UBJDecoderS_ChainedErr
A chained parser callback, provided via the 'X' format flag in UBJDecoder::get, reported an error.
Definition: ubjsonex.h:89
@ UBJDecoderS_Unknown
Unknown error.
Definition: ubjsonex.h:79
@ UBJDecoderS_Unbalanced
Incorrect use of '{', '}', '[', or ']' in UBJDecoder::get.
Definition: ubjsonex.h:72
@ UBJDecoderS_BufNotAligned
Memory buffer(s) provided in UBJDecoder constructor must be word aligned.
Definition: ubjsonex.h:84
@ UBJDecoderS_NameNotFound
Parsed data includes a member whose name is not in value tree.
Definition: ubjsonex.h:61
@ UBJDecoderS_Underflow
Input supplies another value after all schema children were consumed.
Definition: ubjsonex.h:76
@ UBJDecoderS_StringOverflow
Parsed string longer than buffer provided.
Definition: ubjsonex.h:69
@ UBJDecoderS_FormatErr
Parsed data does not match the value tree that was created when method UBJDecoder::get was called.
Definition: ubjsonex.h:58
@ UBJDecoderS_Overflow
Unconsumed schema values remain when a container ends; also used for excessive schema nesting.
Definition: ubjsonex.h:66
@ UBJDecoderS_OK
OK, no errors.
Definition: ubjsonex.h:93
uint16_t U16
Unsigned 16-bit integer.
Definition: GenPrimT.h:91
int64_t S64
Signed 64-bit integer.
Definition: GenPrimT.h:87
int32_t S32
Signed 32-bit integer.
Definition: GenPrimT.h:85
int16_t S16
Signed 16-bit integer.
Definition: GenPrimT.h:83
uint8_t U8
Unsigned 8-bit integer.
Definition: GenPrimT.h:89
int8_t S8
Signed 8-bit integer.
Definition: GenPrimT.h:81
Used internally in UBJDecoder for nested data structures.
Definition: ubjsonex.h:99
Used internally in UBJDecoder, where one instance represents one node in the pointer value tree.
Definition: ubjsonex.h:109
UBJDecoder implements the parser callback API UBJPIntf and builds a pointer value tree when UBJDecode...
Definition: ubjsonex.h:148
The UBJPIntf interface class is the interface between the parser and an object that implements the UB...
Definition: ubjson.h:201