Home
last modified time | relevance | path

Searched refs:pb_byte_t (Results 1 – 25 of 26) sorted by relevance

12

/nanopb-2.7.6/tests/backwards_compatibility/
Dalltypes_legacy.c11 pb_byte_t SubMessage_DEFAULT[] = {0x0a, 0x01, 0x31, 0x10, 0x02, 0x1d, 0x03, 0x00, 0x00, 0x00, 0x00};
12 pb_byte_t EmptyMessage_DEFAULT[] = {0x00};
13 pb_byte_t Limits_DEFAULT[] = {0x08, 0xff, 0xff, 0xff, 0xff, 0x07, 0x10, 0x81, 0x80, 0x80, 0x80, 0xf…
14 pb_byte_t AllTypes_DEFAULT[] = {0xc8, 0x02, 0xc9, 0x1f, 0xd0, 0x02, 0xca, 0x1f, 0xd8, 0x02, 0xcb, 0…
Dalltypes_legacy.h323 extern pb_byte_t SubMessage_default[];
325 extern pb_byte_t EmptyMessage_default[];
327 extern pb_byte_t Limits_default[];
329 extern pb_byte_t AllTypes_default[];
/nanopb-2.7.6/tests/inline/
Dinline.expected1 pb_byte_t data\[32\];
3 pb_byte_t data\[64\];
Dinline_unittests.c21 pb_byte_t msg1_buffer[Message1_size]; in main()
42 pb_byte_t msg2_buffer[Message2_size]; in main()
/nanopb-2.7.6/
Dpb_encode.c23 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
52 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count) in buf_write()
55 pb_byte_t *dest = (pb_byte_t*)stream->state; in buf_write()
64 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize) in pb_ostream_from_buffer()
81 bool checkreturn pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count) in pb_write()
541 const pb_byte_t zero = 0; in pb_encode_ex()
573 pb_byte_t buffer[10]; in pb_encode_varint_32()
574 pb_byte_t byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32()
581 byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32()
587 byte = (pb_byte_t)(byte | ((high & 0x07) << 4)); in pb_encode_varint_32()
[all …]
Dpb_encode.h38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
104 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize);
124 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dpb_decode.h37 bool (*callback)(pb_istream_t *stream, pb_byte_t *buf, size_t count);
134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
Dpb_decode.c24 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
26 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b…
70 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in buf_read()
73 const pb_byte_t *source = (const pb_byte_t*)stream->state; in buf_read()
74 stream->state = (pb_byte_t*)stream->state + count; in buf_read()
85 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read()
94 pb_byte_t tmp[16]; in pb_read()
124 static bool checkreturn pb_readbyte(pb_istream_t *stream, pb_byte_t *buf) in pb_readbyte()
133 *buf = *(const pb_byte_t*)stream->state; in pb_readbyte()
134 stream->state = (pb_byte_t*)stream->state + 1; in pb_readbyte()
[all …]
Dpb_common.c336 const pb_byte_t *s = (const pb_byte_t*)str; in pb_validate_utf8()
Dpb.h269 typedef uint_least8_t pb_byte_t; typedef
283 const pb_byte_t *default_value;
332 #define PB_BYTES_ARRAY_T(n) struct { pb_size_t size; pb_byte_t bytes[n]; }
337 pb_byte_t bytes[1];
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_encode.h38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
104 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize);
124 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dpb_decode.h37 bool (*callback)(pb_istream_t *stream, pb_byte_t *buf, size_t count);
134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
Dpb.h269 typedef uint_least8_t pb_byte_t; typedef
283 const pb_byte_t *default_value;
332 #define PB_BYTES_ARRAY_T(n) struct { pb_size_t size; pb_byte_t bytes[n]; }
337 pb_byte_t bytes[1];
/nanopb-2.7.6/tests/fixed_count/
Dfixed_count_unittests.c13 pb_byte_t buffer[Message1_size]; in main()
39 pb_byte_t input[] = {0x08, 0x00, 0x08, 0x01, 0x08, 0x02, 0x08, 0x03}; in main()
59 pb_byte_t buffer[Message2_size]; in main()
88 pb_byte_t buffer[Message3_size]; in main()
/nanopb-2.7.6/tests/regression/issue_547/
Dtest.c8 pb_byte_t buf[512]; in main()
/nanopb-2.7.6/tests/regression/issue_247/
Dpadding.c21 pb_byte_t buf[128] = {0}; in main()
/nanopb-2.7.6/tests/regression/issue_558/
Dmixed.c10 pb_byte_t buf[64]; in main()
/nanopb-2.7.6/tests/fuzztest/
Dflakystream.c4 bool flakystream_callback(pb_istream_t *stream, pb_byte_t *buf, size_t count) in flakystream_callback()
/nanopb-2.7.6/tests/regression/issue_544/
Dsubmsg_callback.c24 pb_byte_t buf[64]; in main()
/nanopb-2.7.6/tests/regression/issue_249/
Dtest.c36 pb_byte_t buf[128] = {0}; in main()
/nanopb-2.7.6/tests/sort_by_tag/
Dsort_by_tag.c10 pb_byte_t buf[256]; in main()
/nanopb-2.7.6/tests/alltypes_pointer/
Dencode_alltypes_pointer.c35 pb_byte_t req_fbytes[4] = {'1', '0', '1', '9'}; in main()
66 pb_byte_t rep_fbytes[5][4] = {{0}, {0}, {0}, {0}, {'2', '0', '1', '9'}}; in main()
90 pb_byte_t opt_fbytes[4] = {'3', '0', '5', '9'}; in main()
/nanopb-2.7.6/tests/raw_decode/
Draw_decode.c13 static pb_byte_t g_history[HISTORY_LEN];
/nanopb-2.7.6/docs/
Dreference.md162 ### pb_byte_t subsection
167 typedef uint_least8_t pb_byte_t;
206 | `PB_LTYPE_FIXED_LENGTH_BYTES` |0x0B |Inline `pb_byte_t` array of fixed size.
241 const pb_byte_t *default_value;
308 pb_byte_t bytes[1];
457 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize);
474 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
637 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
716 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t bufsize);
729 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
Dconcepts.md203 .pb.h: `PB_BYTES_ARRAY_T(16) data;`, where the struct contains `{pb_size_t size; pb_byte_t bytes[n]…
207 .pb.h: `pb_byte_t data[16];`

12