libgadu  1.12.0
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Struktury danych | Definicje | Definicje typów | Funkcje | Zmienne
Dokumentacja pliku protobuf-c.c
Wykres zależności załączania dla protobuf-c.c:

Struktury danych

struct  _ScannedMember
 

Definicje

#define HAVE_PROTOBUF_C_CONFIG_H   0
 
#define IS_LITTLE_ENDIAN   1
 
#define PRINT_UNPACK_ERRORS   1
 
#define MAX_UINT64_ENCODED_SIZE   10
 
#define MAX_MEMBERS_FOR_HASH_SIZE   128
 
#define TMPALLOC(allocator, size)   ((allocator)->tmp_alloc ((allocator)->allocator_data, (size)))
 
#define FREE(allocator, ptr)   do { if ((ptr) != NULL) ((allocator)->free ((allocator)->allocator_data, (ptr))); } while(0)
 
#define UNALIGNED_ALLOC(allocator, size)   ALLOC (allocator, size) /* placeholder */
 
#define STRUCT_MEMBER_P(struct_p, struct_offset)   ((void *) ((uint8_t*) (struct_p) + (struct_offset)))
 
#define STRUCT_MEMBER(member_type, struct_p, struct_offset)   (*(member_type*) STRUCT_MEMBER_P ((struct_p), (struct_offset)))
 
#define STRUCT_MEMBER_PTR(member_type, struct_p, struct_offset)   ((member_type*) STRUCT_MEMBER_P ((struct_p), (struct_offset)))
 
#define TRUE   1
 
#define FALSE   0
 
#define DO_ALLOC(dst, allocator, size, fail_code)
 
#define DO_UNALIGNED_ALLOC   DO_ALLOC /* placeholder */
 
#define ASSERT_IS_ENUM_DESCRIPTOR(desc)   assert((desc)->magic == PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC)
 
#define ASSERT_IS_MESSAGE_DESCRIPTOR(desc)   assert((desc)->magic == PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC)
 
#define ASSERT_IS_MESSAGE(message)   ASSERT_IS_MESSAGE_DESCRIPTOR((message)->descriptor)
 
#define ASSERT_IS_SERVICE_DESCRIPTOR(desc)   assert((desc)->magic == PROTOBUF_C_SERVICE_DESCRIPTOR_MAGIC)
 
#define UNPACK_ERROR(args)   do { printf args;printf("\n"); }while(0)
 
#define BOUND_SIZEOF_SCANNED_MEMBER_LOG2   5
 
#define FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2   4
 
#define MAX_SCANNED_MEMBER_SLAB
 
#define REQUIRED_FIELD_BITMAP_SET(index)   (required_fields_bitmap[(index/8)%sizeof(required_fields_bitmap)] |= (1<<((index)%8)))
 
#define REQUIRED_FIELD_BITMAP_IS_SET(index)   (required_fields_bitmap[(index/8)%sizeof(required_fields_bitmap)] & (1<<((index)%8)))
 
#define CLEAR_REMAINING_N_PTRS()
 

Definicje typów

typedef struct _ScannedMember ScannedMember
 
typedef void(* GenericHandler )(void *service, const ProtobufCMessage *input, ProtobufCClosure closure, void *closure_data)
 

Funkcje

static void alloc_failed_warning (unsigned size, const char *filename, unsigned line)
 
static void protobuf_c_out_of_memory_default (void)
 
static void * system_alloc (void *allocator_data, size_t size)
 
static void system_free (void *allocator_data, void *data)
 
void protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer, size_t len, const uint8_t *data)
 
static size_t get_tag_size (unsigned number)
 
static size_t uint32_size (uint32_t v)
 
static size_t int32_size (int32_t v)
 
static uint32_t zigzag32 (int32_t v)
 
static size_t sint32_size (int32_t v)
 
static size_t uint64_size (uint64_t v)
 
static uint64_t zigzag64 (int64_t v)
 
static size_t sint64_size (int64_t v)
 
static size_t required_field_get_packed_size (const ProtobufCFieldDescriptor *field, const void *member)
 
static size_t optional_field_get_packed_size (const ProtobufCFieldDescriptor *field, const protobuf_c_boolean *has, const void *member)
 
static size_t repeated_field_get_packed_size (const ProtobufCFieldDescriptor *field, size_t count, const void *member)
 
static size_t unknown_field_get_packed_size (const ProtobufCMessageUnknownField *field)
 
size_t protobuf_c_message_get_packed_size (const ProtobufCMessage *message)
 
static size_t uint32_pack (uint32_t value, uint8_t *out)
 
static size_t int32_pack (int32_t value, uint8_t *out)
 
static size_t sint32_pack (int32_t value, uint8_t *out)
 
static size_t uint64_pack (uint64_t value, uint8_t *out)
 
static size_t sint64_pack (int64_t value, uint8_t *out)
 
static size_t fixed32_pack (uint32_t value, void *out)
 
static size_t fixed64_pack (uint64_t value, void *out)
 
static size_t boolean_pack (protobuf_c_boolean value, uint8_t *out)
 
static size_t string_pack (const char *str, uint8_t *out)
 
static size_t binary_data_pack (const ProtobufCBinaryData *bd, uint8_t *out)
 
static size_t prefixed_message_pack (const ProtobufCMessage *message, uint8_t *out)
 
static size_t tag_pack (uint32_t id, uint8_t *out)
 
static size_t required_field_pack (const ProtobufCFieldDescriptor *field, const void *member, uint8_t *out)
 
static size_t optional_field_pack (const ProtobufCFieldDescriptor *field, const protobuf_c_boolean *has, const void *member, uint8_t *out)
 
static size_t sizeof_elt_in_repeated_array (ProtobufCType type)
 
static void copy_to_little_endian_32 (void *out, const void *in, unsigned N)
 
static void copy_to_little_endian_64 (void *out, const void *in, unsigned N)
 
static unsigned get_type_min_size (ProtobufCType type)
 
static size_t repeated_field_pack (const ProtobufCFieldDescriptor *field, size_t count, const void *member, uint8_t *out)
 
static size_t unknown_field_pack (const ProtobufCMessageUnknownField *field, uint8_t *out)
 
size_t protobuf_c_message_pack (const ProtobufCMessage *message, uint8_t *out)
 
static size_t required_field_pack_to_buffer (const ProtobufCFieldDescriptor *field, const void *member, ProtobufCBuffer *buffer)
 
static size_t optional_field_pack_to_buffer (const ProtobufCFieldDescriptor *field, const protobuf_c_boolean *has, const void *member, ProtobufCBuffer *buffer)
 
static size_t get_packed_payload_length (const ProtobufCFieldDescriptor *field, unsigned count, const void *array)
 
static size_t pack_buffer_packed_payload (const ProtobufCFieldDescriptor *field, unsigned count, const void *array, ProtobufCBuffer *buffer)
 
static size_t repeated_field_pack_to_buffer (const ProtobufCFieldDescriptor *field, unsigned count, const void *member, ProtobufCBuffer *buffer)
 
static size_t unknown_field_pack_to_buffer (const ProtobufCMessageUnknownField *field, ProtobufCBuffer *buffer)
 
size_t protobuf_c_message_pack_to_buffer (const ProtobufCMessage *message, ProtobufCBuffer *buffer)
 
static int int_range_lookup (unsigned n_ranges, const ProtobufCIntRange *ranges, int value)
 
static size_t parse_tag_and_wiretype (size_t len, const uint8_t *data, uint32_t *tag_out, ProtobufCWireType *wiretype_out)
 
static uint32_t scan_length_prefixed_data (size_t len, const uint8_t *data, size_t *prefix_len_out)
 
static size_t max_b128_numbers (size_t len, const uint8_t *data)
 
static protobuf_c_boolean count_packed_elements (ProtobufCType type, size_t len, const uint8_t *data, size_t *count_out)
 
static uint32_t parse_uint32 (unsigned len, const uint8_t *data)
 
static uint32_t parse_int32 (unsigned len, const uint8_t *data)
 
static int32_t unzigzag32 (uint32_t v)
 
static uint32_t parse_fixed_uint32 (const uint8_t *data)
 
static uint64_t parse_uint64 (unsigned len, const uint8_t *data)
 
static int64_t unzigzag64 (uint64_t v)
 
static uint64_t parse_fixed_uint64 (const uint8_t *data)
 
static protobuf_c_boolean parse_boolean (unsigned len, const uint8_t *data)
 
static protobuf_c_boolean parse_required_member (ScannedMember *scanned_member, void *member, ProtobufCAllocator *allocator, protobuf_c_boolean maybe_clear)
 
static protobuf_c_boolean parse_optional_member (ScannedMember *scanned_member, void *member, ProtobufCMessage *message, ProtobufCAllocator *allocator)
 
static protobuf_c_boolean parse_repeated_member (ScannedMember *scanned_member, void *member, ProtobufCMessage *message, ProtobufCAllocator *allocator)
 
static unsigned scan_varint (unsigned len, const uint8_t *data)
 
static protobuf_c_boolean parse_packed_repeated_member (ScannedMember *scanned_member, void *member, ProtobufCMessage *message)
 
static protobuf_c_boolean is_packable_type (ProtobufCType type)
 
static protobuf_c_boolean parse_member (ScannedMember *scanned_member, ProtobufCMessage *message, ProtobufCAllocator *allocator)
 
void protobuf_c_message_init_generic (const ProtobufCMessageDescriptor *desc, ProtobufCMessage *message)
 
ProtobufCMessageprotobuf_c_message_unpack (const ProtobufCMessageDescriptor *desc, ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
 
void protobuf_c_message_free_unpacked (ProtobufCMessage *message, ProtobufCAllocator *allocator)
 
void protobuf_c_message_init (const ProtobufCMessageDescriptor *descriptor, void *message)
 
void protobuf_c_service_invoke_internal (ProtobufCService *service, unsigned method_index, const ProtobufCMessage *input, ProtobufCClosure closure, void *closure_data)
 
void protobuf_c_service_generated_init (ProtobufCService *service, const ProtobufCServiceDescriptor *descriptor, ProtobufCServiceDestroy destroy)
 
void protobuf_c_service_destroy (ProtobufCService *service)
 
const ProtobufCEnumValueprotobuf_c_enum_descriptor_get_value_by_name (const ProtobufCEnumDescriptor *desc, const char *name)
 
const ProtobufCEnumValueprotobuf_c_enum_descriptor_get_value (const ProtobufCEnumDescriptor *desc, int value)
 
const ProtobufCFieldDescriptorprotobuf_c_message_descriptor_get_field_by_name (const ProtobufCMessageDescriptor *desc, const char *name)
 
const ProtobufCFieldDescriptorprotobuf_c_message_descriptor_get_field (const ProtobufCMessageDescriptor *desc, unsigned value)
 
const ProtobufCMethodDescriptorprotobuf_c_service_descriptor_get_method_by_name (const ProtobufCServiceDescriptor *desc, const char *name)
 

Zmienne

unsigned protobuf_c_major = PROTOBUF_C_MAJOR
 
unsigned protobuf_c_minor = PROTOBUF_C_MINOR
 
void(* protobuf_c_out_of_memory )(void) = protobuf_c_out_of_memory_default
 
ProtobufCAllocator protobuf_c_default_allocator
 
ProtobufCAllocator protobuf_c_system_allocator
 

Dokumentacja definicji

#define HAVE_PROTOBUF_C_CONFIG_H   0
#define IS_LITTLE_ENDIAN   1
#define PRINT_UNPACK_ERRORS   1
#define MAX_UINT64_ENCODED_SIZE   10
#define MAX_MEMBERS_FOR_HASH_SIZE   128
#define TMPALLOC (   allocator,
  size 
)    ((allocator)->tmp_alloc ((allocator)->allocator_data, (size)))
#define FREE (   allocator,
  ptr 
)    do { if ((ptr) != NULL) ((allocator)->free ((allocator)->allocator_data, (ptr))); } while(0)
#define UNALIGNED_ALLOC (   allocator,
  size 
)    ALLOC (allocator, size) /* placeholder */
#define STRUCT_MEMBER_P (   struct_p,
  struct_offset 
)    ((void *) ((uint8_t*) (struct_p) + (struct_offset)))
#define STRUCT_MEMBER (   member_type,
  struct_p,
  struct_offset 
)    (*(member_type*) STRUCT_MEMBER_P ((struct_p), (struct_offset)))
#define STRUCT_MEMBER_PTR (   member_type,
  struct_p,
  struct_offset 
)    ((member_type*) STRUCT_MEMBER_P ((struct_p), (struct_offset)))
#define TRUE   1
#define FALSE   0
#define DO_ALLOC (   dst,
  allocator,
  size,
  fail_code 
)
Wartość:
{ size_t da__allocation_size = (size); \
if (da__allocation_size == 0) \
dst = NULL; \
else if ((dst=((allocator)->alloc ((allocator)->allocator_data, \
da__allocation_size))) == NULL) \
{ \
alloc_failed_warning (da__allocation_size, __FILE__, __LINE__); \
fail_code; \
} \
}
static void alloc_failed_warning(unsigned size, const char *filename, unsigned line)
Definition: protobuf-c.c:119
#define DO_UNALIGNED_ALLOC   DO_ALLOC /* placeholder */
#define ASSERT_IS_ENUM_DESCRIPTOR (   desc)    assert((desc)->magic == PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC)
#define ASSERT_IS_MESSAGE_DESCRIPTOR (   desc)    assert((desc)->magic == PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC)
#define ASSERT_IS_MESSAGE (   message)    ASSERT_IS_MESSAGE_DESCRIPTOR((message)->descriptor)
#define ASSERT_IS_SERVICE_DESCRIPTOR (   desc)    assert((desc)->magic == PROTOBUF_C_SERVICE_DESCRIPTOR_MAGIC)
#define UNPACK_ERROR (   args)    do { printf args;printf("\n"); }while(0)
#define BOUND_SIZEOF_SCANNED_MEMBER_LOG2   5
#define FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2   4
#define MAX_SCANNED_MEMBER_SLAB
Wartość:
(sizeof(void*)*8 - 1 \
#define BOUND_SIZEOF_SCANNED_MEMBER_LOG2
Definition: protobuf-c.c:1526
#define FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2
Definition: protobuf-c.c:2153
#define REQUIRED_FIELD_BITMAP_SET (   index)    (required_fields_bitmap[(index/8)%sizeof(required_fields_bitmap)] |= (1<<((index)%8)))
#define REQUIRED_FIELD_BITMAP_IS_SET (   index)    (required_fields_bitmap[(index/8)%sizeof(required_fields_bitmap)] & (1<<((index)%8)))
#define CLEAR_REMAINING_N_PTRS ( )
Wartość:
for(f++;f < desc->n_fields; f++) \
{ \
field = desc->fields + f; \
if (field->label == PROTOBUF_C_LABEL_REPEATED) \
STRUCT_MEMBER (size_t, rv, field->quantifier_offset) = 0; \
}
Definition: protobuf-c.h:81
#define STRUCT_MEMBER(member_type, struct_p, struct_offset)
Definition: protobuf-c.c:111

Dokumentacja definicji typów

typedef struct _ScannedMember ScannedMember
typedef void(* GenericHandler)(void *service, const ProtobufCMessage *input, ProtobufCClosure closure, void *closure_data)

Dokumentacja funkcji

static void alloc_failed_warning ( unsigned  size,
const char *  filename,
unsigned  line 
)
static
static void protobuf_c_out_of_memory_default ( void  )
static
static void* system_alloc ( void *  allocator_data,
size_t  size 
)
static
static void system_free ( void *  allocator_data,
void *  data 
)
static
void protobuf_c_buffer_simple_append ( ProtobufCBuffer buffer,
size_t  len,
const uint8_t *  data 
)
static size_t get_tag_size ( unsigned  number)
inlinestatic
static size_t uint32_size ( uint32_t  v)
inlinestatic
static size_t int32_size ( int32_t  v)
inlinestatic
static uint32_t zigzag32 ( int32_t  v)
inlinestatic
static size_t sint32_size ( int32_t  v)
inlinestatic
static size_t uint64_size ( uint64_t  v)
inlinestatic
static uint64_t zigzag64 ( int64_t  v)
inlinestatic
static size_t sint64_size ( int64_t  v)
inlinestatic
static size_t required_field_get_packed_size ( const ProtobufCFieldDescriptor field,
const void *  member 
)
static
static size_t optional_field_get_packed_size ( const ProtobufCFieldDescriptor field,
const protobuf_c_boolean has,
const void *  member 
)
static
static size_t repeated_field_get_packed_size ( const ProtobufCFieldDescriptor field,
size_t  count,
const void *  member 
)
static
static size_t unknown_field_get_packed_size ( const ProtobufCMessageUnknownField field)
inlinestatic
size_t protobuf_c_message_get_packed_size ( const ProtobufCMessage message)
static size_t uint32_pack ( uint32_t  value,
uint8_t *  out 
)
inlinestatic
static size_t int32_pack ( int32_t  value,
uint8_t *  out 
)
inlinestatic
static size_t sint32_pack ( int32_t  value,
uint8_t *  out 
)
inlinestatic
static size_t uint64_pack ( uint64_t  value,
uint8_t *  out 
)
static
static size_t sint64_pack ( int64_t  value,
uint8_t *  out 
)
inlinestatic
static size_t fixed32_pack ( uint32_t  value,
void *  out 
)
inlinestatic
static size_t fixed64_pack ( uint64_t  value,
void *  out 
)
inlinestatic
static size_t boolean_pack ( protobuf_c_boolean  value,
uint8_t *  out 
)
inlinestatic
static size_t string_pack ( const char *  str,
uint8_t *  out 
)
inlinestatic
static size_t binary_data_pack ( const ProtobufCBinaryData bd,
uint8_t *  out 
)
inlinestatic
static size_t prefixed_message_pack ( const ProtobufCMessage message,
uint8_t *  out 
)
inlinestatic
static size_t tag_pack ( uint32_t  id,
uint8_t *  out 
)
static
static size_t required_field_pack ( const ProtobufCFieldDescriptor field,
const void *  member,
uint8_t *  out 
)
static
static size_t optional_field_pack ( const ProtobufCFieldDescriptor field,
const protobuf_c_boolean has,
const void *  member,
uint8_t *  out 
)
static
static size_t sizeof_elt_in_repeated_array ( ProtobufCType  type)
inlinestatic
static void copy_to_little_endian_32 ( void *  out,
const void *  in,
unsigned  N 
)
static
static void copy_to_little_endian_64 ( void *  out,
const void *  in,
unsigned  N 
)
static
static unsigned get_type_min_size ( ProtobufCType  type)
static
static size_t repeated_field_pack ( const ProtobufCFieldDescriptor field,
size_t  count,
const void *  member,
uint8_t *  out 
)
static
static size_t unknown_field_pack ( const ProtobufCMessageUnknownField field,
uint8_t *  out 
)
static
size_t protobuf_c_message_pack ( const ProtobufCMessage message,
uint8_t *  out 
)
static size_t required_field_pack_to_buffer ( const ProtobufCFieldDescriptor field,
const void *  member,
ProtobufCBuffer buffer 
)
static
static size_t optional_field_pack_to_buffer ( const ProtobufCFieldDescriptor field,
const protobuf_c_boolean has,
const void *  member,
ProtobufCBuffer buffer 
)
static
static size_t get_packed_payload_length ( const ProtobufCFieldDescriptor field,
unsigned  count,
const void *  array 
)
static
static size_t pack_buffer_packed_payload ( const ProtobufCFieldDescriptor field,
unsigned  count,
const void *  array,
ProtobufCBuffer buffer 
)
static
static size_t repeated_field_pack_to_buffer ( const ProtobufCFieldDescriptor field,
unsigned  count,
const void *  member,
ProtobufCBuffer buffer 
)
static
static size_t unknown_field_pack_to_buffer ( const ProtobufCMessageUnknownField field,
ProtobufCBuffer buffer 
)
static
size_t protobuf_c_message_pack_to_buffer ( const ProtobufCMessage message,
ProtobufCBuffer buffer 
)
static int int_range_lookup ( unsigned  n_ranges,
const ProtobufCIntRange ranges,
int  value 
)
inlinestatic
static size_t parse_tag_and_wiretype ( size_t  len,
const uint8_t *  data,
uint32_t *  tag_out,
ProtobufCWireType wiretype_out 
)
static
static uint32_t scan_length_prefixed_data ( size_t  len,
const uint8_t *  data,
size_t *  prefix_len_out 
)
inlinestatic
static size_t max_b128_numbers ( size_t  len,
const uint8_t *  data 
)
static
static protobuf_c_boolean count_packed_elements ( ProtobufCType  type,
size_t  len,
const uint8_t *  data,
size_t *  count_out 
)
static
static uint32_t parse_uint32 ( unsigned  len,
const uint8_t *  data 
)
inlinestatic
static uint32_t parse_int32 ( unsigned  len,
const uint8_t *  data 
)
inlinestatic
static int32_t unzigzag32 ( uint32_t  v)
inlinestatic
static uint32_t parse_fixed_uint32 ( const uint8_t *  data)
inlinestatic
static uint64_t parse_uint64 ( unsigned  len,
const uint8_t *  data 
)
static
static int64_t unzigzag64 ( uint64_t  v)
inlinestatic
static uint64_t parse_fixed_uint64 ( const uint8_t *  data)
inlinestatic
static protobuf_c_boolean parse_boolean ( unsigned  len,
const uint8_t *  data 
)
static
static protobuf_c_boolean parse_required_member ( ScannedMember scanned_member,
void *  member,
ProtobufCAllocator allocator,
protobuf_c_boolean  maybe_clear 
)
static
static protobuf_c_boolean parse_optional_member ( ScannedMember scanned_member,
void *  member,
ProtobufCMessage message,
ProtobufCAllocator allocator 
)
static
static protobuf_c_boolean parse_repeated_member ( ScannedMember scanned_member,
void *  member,
ProtobufCMessage message,
ProtobufCAllocator allocator 
)
static
static unsigned scan_varint ( unsigned  len,
const uint8_t *  data 
)
static
static protobuf_c_boolean parse_packed_repeated_member ( ScannedMember scanned_member,
void *  member,
ProtobufCMessage message 
)
static
static protobuf_c_boolean is_packable_type ( ProtobufCType  type)
static
static protobuf_c_boolean parse_member ( ScannedMember scanned_member,
ProtobufCMessage message,
ProtobufCAllocator allocator 
)
static
void protobuf_c_message_init_generic ( const ProtobufCMessageDescriptor desc,
ProtobufCMessage message 
)
ProtobufCMessage* protobuf_c_message_unpack ( const ProtobufCMessageDescriptor desc,
ProtobufCAllocator allocator,
size_t  len,
const uint8_t *  data 
)
void protobuf_c_message_free_unpacked ( ProtobufCMessage message,
ProtobufCAllocator allocator 
)
void protobuf_c_message_init ( const ProtobufCMessageDescriptor descriptor,
void *  message 
)
void protobuf_c_service_invoke_internal ( ProtobufCService service,
unsigned  method_index,
const ProtobufCMessage input,
ProtobufCClosure  closure,
void *  closure_data 
)
void protobuf_c_service_generated_init ( ProtobufCService service,
const ProtobufCServiceDescriptor descriptor,
ProtobufCServiceDestroy  destroy 
)
void protobuf_c_service_destroy ( ProtobufCService service)
const ProtobufCEnumValue* protobuf_c_enum_descriptor_get_value_by_name ( const ProtobufCEnumDescriptor desc,
const char *  name 
)
const ProtobufCEnumValue* protobuf_c_enum_descriptor_get_value ( const ProtobufCEnumDescriptor desc,
int  value 
)
const ProtobufCFieldDescriptor* protobuf_c_message_descriptor_get_field_by_name ( const ProtobufCMessageDescriptor desc,
const char *  name 
)
const ProtobufCFieldDescriptor* protobuf_c_message_descriptor_get_field ( const ProtobufCMessageDescriptor desc,
unsigned  value 
)
const ProtobufCMethodDescriptor* protobuf_c_service_descriptor_get_method_by_name ( const ProtobufCServiceDescriptor desc,
const char *  name 
)

Dokumentacja zmiennych

unsigned protobuf_c_major = PROTOBUF_C_MAJOR
unsigned protobuf_c_minor = PROTOBUF_C_MINOR
void(* protobuf_c_out_of_memory)(void) = protobuf_c_out_of_memory_default
ProtobufCAllocator protobuf_c_default_allocator
Wartość początkowa:
=
{
NULL,
8192,
NULL
}
static void * system_alloc(void *allocator_data, size_t size)
Definition: protobuf-c.c:161
static void system_free(void *allocator_data, void *data)
Definition: protobuf-c.c:173
ProtobufCAllocator protobuf_c_system_allocator
Wartość początkowa:
=
{
NULL,
8192,
NULL
}
static void * system_alloc(void *allocator_data, size_t size)
Definition: protobuf-c.c:161
static void system_free(void *allocator_data, void *data)
Definition: protobuf-c.c:173