/external/nanopb-c/ |
D | pb_encode.c | 22 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr… 25 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 26 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 28 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const… 29 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr… 30 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 31 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 32 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s… 33 static bool checkreturn pb_enc_fixed64(pb_ostream_t *stream, const pb_field_t *field, const void *s… 34 static bool checkreturn pb_enc_bytes(pb_ostream_t *stream, const pb_field_t *field, const void *src… [all …]
|
D | pb_decode.c | 25 const pb_field_t *start; /* Start of the pb_field_t array */ 26 const pb_field_t *pos; /* Current position of the iterator */ 34 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn; 39 static void pb_field_init(pb_field_iterator_t *iter, const pb_field_t *fields, void *dest_struct); 48 static void pb_message_set_to_defaults(const pb_field_t fields[], void *dest_struct); 49 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest); 50 static bool checkreturn pb_dec_uvarint(pb_istream_t *stream, const pb_field_t *field, void *dest); 51 static bool checkreturn pb_dec_svarint(pb_istream_t *stream, const pb_field_t *field, void *dest); 52 static bool checkreturn pb_dec_fixed32(pb_istream_t *stream, const pb_field_t *field, void *dest); 53 static bool checkreturn pb_dec_fixed64(pb_istream_t *stream, const pb_field_t *field, void *dest); [all …]
|
D | pb_encode.h | 67 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 72 bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 76 bool pb_get_encoded_size(size_t *size, const pb_field_t fields[], const void *src_struct); 118 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 148 bool pb_encode_submessage(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
|
D | pb_decode.h | 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); 93 void pb_release(const pb_field_t fields[], void *dest_struct);
|
D | pb.h | 209 typedef struct _pb_field_t pb_field_t; typedef 278 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void *arg); 279 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, const void *arg); 284 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); 285 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg);
|
D | CHANGELOG.txt | 31 Clean up pb_field_t definition with typedefs.
|
/external/nanopb-c/tests/callbacks/ |
D | encode_callbacks.c | 9 bool encode_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_string() 19 bool encode_int32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_int32() 27 bool encode_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_fixed32() 37 bool encode_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_fixed64() 47 bool encode_repeatedstring(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_repeatedstring()
|
D | decode_callbacks.c | 10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_string() 28 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_int32() 38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed32() 48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed64()
|
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 13 static bool write_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_varint() 19 static bool write_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_svarint() 25 static bool write_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed32() 31 static bool write_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed64() 37 static bool write_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 43 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 50 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 57 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 71 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() 85 static bool write_repeated_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_fixed32() [all …]
|
D | decode_alltypes_callback.c | 18 static bool read_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_varint() 28 static bool read_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_svarint() 38 static bool read_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed32() 48 static bool read_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed64() 58 static bool read_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_string() 70 static bool read_submsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_submsg() 81 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg() 87 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint() 98 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint() 109 static bool read_repeated_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_fixed32() [all …]
|
/external/nanopb-c/examples/using_union_messages/ |
D | decode.c | 17 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream) in decode_unionmessage_type() 27 const pb_field_t *field; in decode_unionmessage_type() 45 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_field_t fields[], void *dest_struc… in decode_unionmessage_contents() 64 const pb_field_t *type = decode_unionmessage_type(&stream); in main()
|
D | encode.c | 17 bool encode_unionmessage(pb_ostream_t *stream, const pb_field_t messagetype[], const void *message) in encode_unionmessage() 19 const pb_field_t *field; in encode_unionmessage()
|
/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 22 bool callback_check(pb_istream_t *stream, const pb_field_t *field, void **arg) in callback_check() 111 pb_field_t f = {1, PB_LTYPE_VARINT, 0, 0, 4, 0, 0}; in main() 124 pb_field_t f = {1, PB_LTYPE_SVARINT, 0, 0, 4, 0, 0}; in main() 136 pb_field_t f = {1, PB_LTYPE_SVARINT, 0, 0, 8, 0, 0}; in main() 148 pb_field_t f = {1, PB_LTYPE_FIXED32, 0, 0, 4, 0, 0}; in main() 160 pb_field_t f = {1, PB_LTYPE_FIXED64, 0, 0, 8, 0, 0}; in main() 172 pb_field_t f = {1, PB_LTYPE_BYTES, 0, 0, sizeof(d), 0, 0}; in main() 192 pb_field_t f = {1, PB_LTYPE_STRING, 0, 0, 5, 0, 0}; in main()
|
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 20 bool fieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in fieldcallback() 28 bool crazyfieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in crazyfieldcallback() 99 pb_field_t field = {10, PB_LTYPE_SVARINT}; in main() 132 pb_field_t field = {1, PB_LTYPE_VARINT, 0, 0, sizeof(value)}; in main()
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | alltypes_legacy.h | 157 extern const pb_field_t SubMessage_fields[4]; 158 extern const pb_field_t AllTypes_fields[53];
|
D | alltypes_legacy.c | 31 const pb_field_t SubMessage_fields[4] = { 38 const pb_field_t AllTypes_fields[53] = {
|
/external/nanopb-c/docs/ |
D | reference.rst | 241 pb_field_t section in pb.h 245 typedef struct _pb_field_t pb_field_t; 284 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); 285 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); 322 assume that *arg* points to a *pb_field_t* that describes the field in question. 410 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 423 … bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 451 Same as `pb_encode_tag`_, except takes the parameters from a *pb_field_t* structure. :: 453 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 527 …bool pb_encode_submessage(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); [all …]
|
D | concepts.rst | 187 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); 201 bool write_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) 214 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg); 224 bool read_ints(pb_istream_t *stream, const pb_field_t *field, void **arg) 239 For using the *pb_encode* and *pb_decode* functions, you need an array of pb_field_t constants desc… 252 const pb_field_t Person_PhoneNumber_fields[3] = {
|
D | index.rst | 18 The high-level encoding and decoding functions take an array of *pb_field_t* structures, which desc… 79 extern const pb_field_t Example_fields[2];
|
D | security.rst | 32 2. The automatically generated field definitions, i.e. *pb_field_t* lists.
|
/external/nanopb-c/examples/network_server/ |
D | client.c | 26 bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void **arg) in printfile_callback()
|
D | server.c | 26 bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in listdir_callback()
|
/external/nanopb-c/generator/ |
D | nanopb_generator.py | 335 def pb_field_t(self, prev_field_name): member in Field 488 (self.fullname, self.pb_field_t(None))) 573 result += field.pb_field_t(prev)
|