MOS Source Code
Loading...
Searching...
No Matches
pb_common.c File Reference
#include "pb_common.h"
+ Include dependency graph for pb_common.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool load_descriptor_values (pb_field_iter_t *iter)
 
static void advance_iterator (pb_field_iter_t *iter)
 
bool pb_field_iter_begin (pb_field_iter_t *iter, const pb_msgdesc_t *desc, void *message)
 
bool pb_field_iter_begin_extension (pb_field_iter_t *iter, pb_extension_t *extension)
 
bool pb_field_iter_next (pb_field_iter_t *iter)
 
bool pb_field_iter_find (pb_field_iter_t *iter, uint32_t tag)
 
bool pb_field_iter_find_extension (pb_field_iter_t *iter)
 
static voidpb_const_cast (const void *p)
 
bool pb_field_iter_begin_const (pb_field_iter_t *iter, const pb_msgdesc_t *desc, const void *message)
 
bool pb_field_iter_begin_extension_const (pb_field_iter_t *iter, const pb_extension_t *extension)
 
bool pb_default_field_callback (pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_t *field)
 

Function Documentation

◆ load_descriptor_values()

static bool load_descriptor_values ( pb_field_iter_t * iter)
static

◆ advance_iterator()

static void advance_iterator ( pb_field_iter_t * iter)
static

◆ pb_field_iter_begin()

bool pb_field_iter_begin ( pb_field_iter_t * iter,
const pb_msgdesc_t * desc,
void * message )

◆ pb_field_iter_begin_extension()

bool pb_field_iter_begin_extension ( pb_field_iter_t * iter,
pb_extension_t * extension )

Definition at line 166 of file pb_common.c.

Referenced by default_extension_decoder(), pb_field_iter_begin_extension_const(), and pb_field_set_to_default().

+ Here is the call graph for this function:

◆ pb_field_iter_next()

bool pb_field_iter_next ( pb_field_iter_t * iter)

Definition at line 188 of file pb_common.c.

Referenced by encode_unionmessage(), limit_sizes(), main(), pb_check_proto3_default_value(), pb_encode(), pb_message_set_to_defaults(), and validate_message().

+ Here is the call graph for this function:

◆ pb_field_iter_find()

bool pb_field_iter_find ( pb_field_iter_t * iter,
uint32_t tag )

Definition at line 195 of file pb_common.c.

Referenced by decode_unionmessage_type(), and pb_decode_inner().

+ Here is the call graph for this function:

◆ pb_field_iter_find_extension()

bool pb_field_iter_find_extension ( pb_field_iter_t * iter)

Definition at line 246 of file pb_common.c.

Referenced by pb_decode_inner().

+ Here is the call graph for this function:

◆ pb_const_cast()

static void * pb_const_cast ( const void * p)
static

Definition at line 277 of file pb_common.c.

Referenced by pb_field_iter_begin_const(), and pb_field_iter_begin_extension_const().

◆ pb_field_iter_begin_const()

bool pb_field_iter_begin_const ( pb_field_iter_t * iter,
const pb_msgdesc_t * desc,
const void * message )

Definition at line 290 of file pb_common.c.

Referenced by pb_encode(), and validate_message().

+ Here is the call graph for this function:

◆ pb_field_iter_begin_extension_const()

bool pb_field_iter_begin_extension_const ( pb_field_iter_t * iter,
const pb_extension_t * extension )

Definition at line 295 of file pb_common.c.

Referenced by default_extension_encoder().

+ Here is the call graph for this function:

◆ pb_default_field_callback()

bool pb_default_field_callback ( pb_istream_t * istream,
pb_ostream_t * ostream,
const pb_field_t * field )

Definition at line 300 of file pb_common.c.

Referenced by pb_check_proto3_default_value().