|
#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() |
|
|
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) |
|
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) |
|