WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
decoder.h File Reference
#include <setjmp.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "upb/mem/arena.h"
#include "upb/mem/internal/arena.h"
#include "upb/mini_table/extension_registry.h"
#include "upb/mini_table/internal/message.h"
#include "upb/mini_table/message.h"
#include "upb/wire/decode.h"
#include "upb/wire/eps_copy_input_stream.h"
#include "utf8_range.h"
#include "upb/port/def.inc"
#include "upb/port/undef.inc"

Go to the source code of this file.

Classes

struct  upb_Decoder
 

Macros

#define DECODE_NOGROUP   (uint32_t)-1
 

Typedefs

typedef struct upb_Decoder upb_Decoder
 

Functions

UPB_INLINE const char * upb_Decoder_Init (upb_Decoder *d, const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena, char *trace_buf, size_t trace_size)
 
UPB_INLINE upb_DecodeStatus upb_Decoder_Destroy (upb_Decoder *d, upb_Arena *arena)
 
UPB_INLINE void _upb_Decoder_Trace (upb_Decoder *d, char event)
 
UPB_INLINE bool _upb_Decoder_VerifyUtf8Inline (const char *ptr, int len)
 
const char * _upb_Decoder_CheckRequired (upb_Decoder *d, const char *ptr, const upb_Message *msg, const upb_MiniTable *m)
 
UPB_INLINE intptr_t decode_totable (const upb_MiniTable *tablep)
 
UPB_INLINE const upb_MiniTabledecode_totablep (intptr_t table)
 
const char * _upb_Decoder_IsDoneFallback (upb_EpsCopyInputStream *e, const char *ptr, int overrun)
 
const char * _upb_Decoder_DecodeMessage (upb_Decoder *d, const char *ptr, upb_Message *msg, const upb_MiniTable *layout)
 
UPB_INLINE bool _upb_Decoder_IsDone (upb_Decoder *d, const char **ptr)
 
UPB_NORETURN void * _upb_Decoder_ErrorJmp (upb_Decoder *d, upb_DecodeStatus status)
 
UPB_INLINE const char * _upb_Decoder_BufferFlipCallback (upb_EpsCopyInputStream *e, const char *old_end, const char *new_start)
 

Macro Definition Documentation

◆ DECODE_NOGROUP

#define DECODE_NOGROUP   (uint32_t)-1

Typedef Documentation

◆ upb_Decoder

typedef struct upb_Decoder upb_Decoder

Function Documentation

◆ _upb_Decoder_BufferFlipCallback()

UPB_INLINE const char * _upb_Decoder_BufferFlipCallback ( upb_EpsCopyInputStream * e,
const char * old_end,
const char * new_start )

◆ _upb_Decoder_CheckRequired()

const char * _upb_Decoder_CheckRequired ( upb_Decoder * d,
const char * ptr,
const upb_Message * msg,
const upb_MiniTable * m )

◆ _upb_Decoder_DecodeMessage()

const char * _upb_Decoder_DecodeMessage ( upb_Decoder * d,
const char * ptr,
upb_Message * msg,
const upb_MiniTable * layout )

◆ _upb_Decoder_ErrorJmp()

UPB_NORETURN void * _upb_Decoder_ErrorJmp ( upb_Decoder * d,
upb_DecodeStatus status )

◆ _upb_Decoder_IsDone()

UPB_INLINE bool _upb_Decoder_IsDone ( upb_Decoder * d,
const char ** ptr )

◆ _upb_Decoder_IsDoneFallback()

const char * _upb_Decoder_IsDoneFallback ( upb_EpsCopyInputStream * e,
const char * ptr,
int overrun )

◆ _upb_Decoder_Trace()

UPB_INLINE void _upb_Decoder_Trace ( upb_Decoder * d,
char event )

◆ _upb_Decoder_VerifyUtf8Inline()

UPB_INLINE bool _upb_Decoder_VerifyUtf8Inline ( const char * ptr,
int len )

◆ decode_totable()

UPB_INLINE intptr_t decode_totable ( const upb_MiniTable * tablep)

◆ decode_totablep()

UPB_INLINE const upb_MiniTable * decode_totablep ( intptr_t table)

◆ upb_Decoder_Destroy()

UPB_INLINE upb_DecodeStatus upb_Decoder_Destroy ( upb_Decoder * d,
upb_Arena * arena )

◆ upb_Decoder_Init()

UPB_INLINE const char * upb_Decoder_Init ( upb_Decoder * d,
const char * buf,
size_t size,
const upb_ExtensionRegistry * extreg,
int options,
upb_Arena * arena,
char * trace_buf,
size_t trace_size )