/external/nanopb-c/ |
D | pb_encode.h | 38 bool (*callback)(pb_ostream_t *stream, const uint8_t *buf, size_t count); 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); 89 pb_ostream_t pb_ostream_from_buffer(uint8_t *buf, size_t bufsize); 109 bool pb_write(pb_ostream_t *stream, const uint8_t *buf, size_t count); 118 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 130 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); 133 bool pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size); [all …]
|
D | pb_encode.c | 22 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr… 24 static bool checkreturn buf_write(pb_ostream_t *stream, const uint8_t *buf, size_t count); 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… 27 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten… 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… [all …]
|
D | pb.h | 272 typedef struct _pb_ostream_t pb_ostream_t; typedef 279 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, const void *arg); 285 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); 325 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
|
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 9 bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in streamcallback() 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() 55 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main() 66 pb_ostream_t stream = {&streamcallback, 0, SIZE_MAX, 0}; in main() 76 pb_ostream_t s; in main() 89 pb_ostream_t s; in main() 98 pb_ostream_t s; in main() 116 pb_ostream_t s; in main() 126 pb_ostream_t s; in main() [all …]
|
/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() 66 pb_ostream_t stream; in main()
|
/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 …]
|
/external/nanopb-c/examples/network_server/ |
D | common.c | 11 static bool write_callback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in write_callback() 30 pb_ostream_t pb_ostream_from_socket(int fd) in pb_ostream_from_socket() 32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
|
D | server.c | 26 bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in listdir_callback() 53 pb_ostream_t output = pb_ostream_from_socket(connfd); in handle_connection()
|
D | common.h | 6 pb_ostream_t pb_ostream_from_socket(int fd);
|
D | client.c | 43 pb_ostream_t output = pb_ostream_from_socket(fd); in listdir()
|
/external/nanopb-c/tests/basic_stream/ |
D | encode_stream.c | 10 bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in streamcallback() 26 pb_ostream_t stream = {&streamcallback, NULL, SIZE_MAX, 0}; in main()
|
/external/nanopb-c/examples/using_union_messages/ |
D | encode.c | 17 bool encode_unionmessage(pb_ostream_t *stream, const pb_field_t messagetype[], const void *message) in encode_unionmessage() 45 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/examples/using_double_on_avr/ |
D | encode_double.c | 18 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/tests/basic_buffer/ |
D | encode_buffer.c | 14 pb_ostream_t stream; in main()
|
/external/nanopb-c/tests/missing_fields/ |
D | missing_fields.c | 16 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/examples/simple/ |
D | simple.c | 22 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/tests/extensions/ |
D | encode_extensions.c | 15 pb_ostream_t stream; in main()
|
/external/nanopb-c/docs/ |
D | concepts.rst | 52 The stream abstraction is very lightweight, and consists of a structure (*pb_ostream_t* or *pb_istr… 69 bool (*callback)(pb_ostream_t *stream, const uint8_t *buf, size_t count); 84 pb_ostream_t sizestream = {0}; 92 bool callback(pb_ostream_t *stream, const uint8_t *buf, size_t count) 98 pb_ostream_t stdoutstream = {&callback, stdout, SIZE_MAX, 0}; 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)
|
D | reference.rst | 285 bool (*encode)(pb_ostream_t *stream, const pb_field_t *field, void * const *arg); 316 bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension); 385 pb_ostream_t pb_ostream_from_buffer(uint8_t *buf, size_t bufsize); 397 bool pb_write(pb_ostream_t *stream, const uint8_t *buf, size_t count); 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); 442 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, int field_number); 453 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 476 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 488 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); [all …]
|
D | security.rst | 33 3. Contents of the *pb_istream_t* and *pb_ostream_t* structures (this does not 50 2. Nanopb will never write more than *max_size* bytes to *pb_ostream_t*.
|
D | index.rst | 85 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer));
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | encode_legacy.c | 120 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/tests/alltypes/ |
D | encode_alltypes.c | 130 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/external/nanopb-c/tests/alltypes_pointer/ |
D | encode_alltypes_pointer.c | 173 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|