149 int vget(
const char* fmt, va_list* argList);
178 int get(
const char* fmt, ...);
191 UBJDecoder(U8* buf,
int bufSize,
int extraStackLen=0);
201 int startServiceLevel;
214#define UBJD_MNUM(o, m) #m, &(o)->m
219#define UBJD_MSTR(o, m) #m, &(o)->m, sizeof((o)->m)
224#define UBJD_ASTR(o, m) &(o)->m, sizeof((o)->m)
231int UBJDecoder_vget(
UBJDecoder* o,
const char* fmt, va_list* argList);
232int UBJDecoder_get(
UBJDecoder* o,
const char* fmt, ...);
233void UBJDecoder_constructor(
234 UBJDecoder* o, U8* buf,
int bufSize,
int extraStackLen);
238 return UBJDecoder_vget(
this, fmt, argList);
243 va_start(argList, fmt);
244 status = UBJDecoder_vget(
this, fmt, &argList);
249 UBJDecoder_constructor(
this, buf, bufSize, extraStackLen);
UBJDecoderS
UBJDecoder Status Codes.
Definition: ubjsonex.h:51
int vget(const char *fmt, va_list *argList)
See UBJDecoder::get for details.
Definition: ubjsonex.h:237
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:248
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:240
@ UBJDecoderS_ChainedErr
A chained parser callback, provided via the 'X' format flag in JDecoder::get, reported an error.
Definition: ubjsonex.h:88
@ UBJDecoderS_Unknown
Unkown error.
Definition: ubjsonex.h:78
@ UBJDecoderS_Unbalanced
Incorrect use of '{', '}', '[', or '[' in JDecoder::get.
Definition: ubjsonex.h:70
@ UBJDecoderS_BufNotAligned
Memory buffer(s) provided in UBJDecoder constructor must be word aligned.
Definition: ubjsonex.h:83
@ UBJDecoderS_NameNotFound
Parsed data includes a member whose name is not in value tree.
Definition: ubjsonex.h:59
@ UBJDecoderS_Underflow
Received less array or object member values from parsed data than found in value tree.
Definition: ubjsonex.h:75
@ UBJDecoderS_StringOverflow
Parsed string longer than buffer provided.
Definition: ubjsonex.h:67
@ UBJDecoderS_FormatErr
Parsed data does not match the value tree that was created when method UBJDecoder::get was called.
Definition: ubjsonex.h:56
@ UBJDecoderS_Overflow
Received more array or object member values from parsed data than found in value tree.
Definition: ubjsonex.h:64
@ UBJDecoderS_OK
OK, no errors.
Definition: ubjsonex.h:92
Used internally in UBJDecoder for nested data structures.
Definition: ubjsonex.h:98
Used internally in UBJDecoder, where one instance represents one node in the pointer value tree.
Definition: ubjsonex.h:108
UBJDecoder implements the parser callback API UBJPIntf and builds a pointer value tree when UBJDecode...
Definition: ubjsonex.h:147
The UBJPIntf interface class is the interface between the parser and an object that implements the UB...
Definition: ubjson.h:189