Home
last modified time | relevance | path

Searched refs:pb_ostream_t (Results 1 – 24 of 24) sorted by relevance

/external/nanopb-c/
Dpb_encode.h38 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 …]
Dpb_encode.c22 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 …]
Dpb.h272 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/
Dencode_unittests.c9 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/
Dencode_callbacks.c9 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/
Dencode_alltypes_callback.c13 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/
Dcommon.c11 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()
Dserver.c26 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()
Dcommon.h6 pb_ostream_t pb_ostream_from_socket(int fd);
Dclient.c43 pb_ostream_t output = pb_ostream_from_socket(fd); in listdir()
/external/nanopb-c/tests/basic_stream/
Dencode_stream.c10 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/
Dencode.c17 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/
Dencode_double.c18 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
/external/nanopb-c/docs/
Dconcepts.rst52 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)
Dreference.rst285 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 …]
Dsecurity.rst33 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*.
Dindex.rst85 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer));
/external/nanopb-c/tests/basic_buffer/
Dencode_buffer.c14 pb_ostream_t stream; in main()
/external/nanopb-c/tests/missing_fields/
Dmissing_fields.c16 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
/external/nanopb-c/examples/simple/
Dsimple.c22 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
/external/nanopb-c/tests/extensions/
Dencode_extensions.c15 pb_ostream_t stream; in main()
/external/nanopb-c/tests/backwards_compatibility/
Dencode_legacy.c120 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
/external/nanopb-c/tests/alltypes/
Dencode_alltypes.c130 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
/external/nanopb-c/tests/alltypes_pointer/
Dencode_alltypes_pointer.c173 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()