/external/nanopb-c/ |
pb_decode.h | 37 bool (*callback)(pb_istream_t *stream, uint8_t *buf, size_t count); 61 * pb_istream_t stream; 68 bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); 80 bool pb_decode_noinit(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); 86 bool pb_decode_delimited(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); 106 pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize); 108 /* Function to read from a pb_istream_t. You can use this if you need to 111 bool pb_read(pb_istream_t *stream, uint8_t *buf, size_t count); 120 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof); 123 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) [all...] |
pb_decode.c | 34 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn; 36 static bool checkreturn buf_read(pb_istream_t *stream, uint8_t *buf, size_t count); 37 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 38 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, uint8_t *buf, size_t *size); 42 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 43 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 44 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 45 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type); 46 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 49 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest) [all...] |
pb.h | 271 typedef struct _pb_istream_t pb_istream_t; typedef in typeref:struct:_pb_istream_t 278 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void *arg); 284 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); 316 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension,
|
/external/nanopb-c/examples/network_server/ |
common.h | 7 pb_istream_t pb_istream_from_socket(int fd);
|
common.c | 17 static bool read_callback(pb_istream_t *stream, uint8_t *buf, size_t count) 36 pb_istream_t pb_istream_from_socket(int fd) 38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX};
|
client.c | 26 bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void **arg) 42 pb_istream_t input = pb_istream_from_socket(fd);
|
server.c | 52 pb_istream_t input = pb_istream_from_socket(connfd);
|
/external/nanopb-c/tests/missing_fields/ |
missing_fields.c | 30 pb_istream_t stream = pb_istream_from_buffer(buffer, size); 42 pb_istream_t stream = pb_istream_from_buffer(buffer, size);
|
/external/nanopb-c/examples/using_union_messages/ |
decode.c | 17 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream) 45 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct) 47 pb_istream_t substream; 62 pb_istream_t stream = pb_istream_from_buffer(buffer, count);
|
/external/nanopb-c/tests/basic_buffer/ |
decode_buffer.c | 16 bool print_person(pb_istream_t *stream) 64 pb_istream_t stream; 77 /* Construct a pb_istream_t for reading from the buffer */
|
/external/nanopb-c/examples/using_double_on_avr/ |
decode_double.c | 14 pb_istream_t stream = pb_istream_from_buffer(buffer, count);
|
/external/nanopb-c/tests/basic_stream/ |
decode_stream.c | 12 bool print_person(pb_istream_t *stream) 57 /* This binds the pb_istream_t to stdin */ 58 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count) 73 pb_istream_t stream = {&callback, NULL, SIZE_MAX};
|
/external/nanopb-c/tests/callbacks/ |
decode_callbacks.c | 10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) 28 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) 38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) 48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) 62 pb_istream_t stream;
|
/external/nanopb-c/tests/decode_unittests/ |
decode_unittests.c | 11 bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count) 22 bool callback_check(pb_istream_t *stream, const pb_field_t *field, void **arg) 47 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); 49 COMMENT("Test pb_read and pb_istream_t"); 61 pb_istream_t stream = {&stream_callback, NULL, 20}; 74 pb_istream_t s; 91 pb_istream_t s; 101 pb_istream_t s; 110 pb_istream_t s = S("\x01\xFF\xFF\x03"); 123 pb_istream_t s [all...] |
/external/nanopb-c/examples/simple/ |
simple.c | 50 pb_istream_t stream = pb_istream_from_buffer(buffer, message_length);
|
/external/nanopb-c/tests/alltypes_callback/ |
decode_alltypes_callback.c | 18 static bool read_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) 28 static bool read_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) 38 static bool read_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) 48 static bool read_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) 58 static bool read_string(pb_istream_t *stream, const pb_field_t *field, void **arg) 70 static bool read_submsg(pb_istream_t *stream, const pb_field_t *field, void **arg) 81 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) 87 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) 98 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) 109 static bool read_repeated_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg [all...] |
/external/nanopb-c/tests/extensions/ |
decode_extensions.c | 20 pb_istream_t stream;
|
/external/nanopb-c/tests/alltypes/ |
decode_alltypes.c | 20 bool check_alltypes(pb_istream_t *stream, int mode) 193 pb_istream_t stream; 202 /* Construct a pb_istream_t for reading from the buffer */
|
/external/nanopb-c/tests/alltypes_pointer/ |
decode_alltypes_pointer.c | 15 bool check_alltypes(pb_istream_t *stream, int mode) 151 pb_istream_t stream; 160 /* Construct a pb_istream_t for reading from the buffer */
|
/external/nanopb-c/tests/backwards_compatibility/ |
decode_legacy.c | 23 bool check_alltypes(pb_istream_t *stream, int mode) 182 pb_istream_t stream; 191 /* Construct a pb_istream_t for reading from the buffer */
|
/hardware/ril/libril/ |
RilSapSocket.cpp | 379 pb_istream_t stream;
|