Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
ubjsonex.h File Reference
#include "ubjson.h"
Include dependency graph for ubjsonex.h:

Go to the source code of this file.

Classes

struct  UBJDecoderStackNode
 Used internally in UBJDecoder for nested data structures. More...
 
struct  UBJDecoderV
 Used internally in UBJDecoder, where one instance represents one node in the pointer value tree. More...
 
struct  UBJDecoder
 UBJDecoder implements the parser callback API UBJPIntf and builds a pointer value tree when UBJDecoder::get is called. More...
 

Macros

#define UBJD_MNUM(o, m)   #m, &(o)->m
 UBJDecoder::get helper macro, used when setting a number pointer in an object. More...
 
#define UBJD_MSTR(o, m)   #m, &(o)->m, sizeof((o)->m)
 UBJDecoder::get helper macro, used when setting a string pointer in an object. More...
 
#define UBJD_ASTR(o, m)   &(o)->m, sizeof((o)->m)
 UBJDecoder::get helper macro, used when setting a string pointer in an array. More...
 

Typedefs

typedef UBJDecoder UBJDecoder
 UBJDecoder implements the parser callback API UBJPIntf and builds a pointer value tree when UBJDecoder::get is called. More...
 

Enumerations

enum  UBJDecoderS {
  UBJDecoderS_FormatErr = -100 , UBJDecoderS_NameNotFound , UBJDecoderS_Overflow , UBJDecoderS_StringOverflow ,
  UBJDecoderS_Unbalanced , UBJDecoderS_Underflow , UBJDecoderS_Unknown , UBJDecoderS_BufNotAligned ,
  UBJDecoderS_ChainedErr , UBJDecoderS_OK = 0
}
 UBJDecoder Status Codes. More...
 

Functions

int UBJDecoder_vget (UBJDecoder *o, const char *fmt, va_list *argList)
 Build the schema using a va_list; see UBJDecoder::get for format rules. More...
 
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 feeds elements to the UBJDecoder instance. More...
 
void UBJDecoder_constructor (UBJDecoder *o, U8 *buf, int bufSize, int extraStackLen)
 Create/initialize a UBJDecoder instance. More...