Home
last modified time | relevance | path

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

12

/nanopb-3.4.0/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-3.4.0/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-3.4.0/
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()
54 pb_byte_t *dest = (pb_byte_t*)stream->state; in buf_write()
57 memcpy(dest, buf, count * sizeof(pb_byte_t)); in buf_write()
62 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize) in pb_ostream_from_buffer()
83 bool checkreturn pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count) in pb_write()
543 const pb_byte_t zero = 0; in pb_encode_ex()
575 pb_byte_t buffer[10]; in pb_encode_varint_32()
576 pb_byte_t byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32()
583 byte = (pb_byte_t)(low & 0x7F); 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);
128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
133 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…
68 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in buf_read()
70 const pb_byte_t *source = (const pb_byte_t*)stream->state; in buf_read()
71 stream->state = (pb_byte_t*)stream->state + count; in buf_read()
75 memcpy(buf, source, count * sizeof(pb_byte_t)); in buf_read()
81 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read()
90 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()
[all …]
Dpb_common.c336 const pb_byte_t *s = (const pb_byte_t*)str; in pb_validate_utf8()
Dpb.h305 typedef uint_least8_t pb_byte_t; typedef
319 const pb_byte_t *default_value;
368 #define PB_BYTES_ARRAY_T(n) struct { pb_size_t size; pb_byte_t bytes[n]; }
373 pb_byte_t bytes[1];
/nanopb-3.4.0/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);
128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
Dpb.h305 typedef uint_least8_t pb_byte_t; typedef
319 const pb_byte_t *default_value;
368 #define PB_BYTES_ARRAY_T(n) struct { pb_size_t size; pb_byte_t bytes[n]; }
373 pb_byte_t bytes[1];
/nanopb-3.4.0/tests/regression/issue_547/
Dtest.c8 pb_byte_t buf[512]; in main()
/nanopb-3.4.0/tests/regression/issue_247/
Dpadding.c21 pb_byte_t buf[128] = {0}; in main()
/nanopb-3.4.0/tests/fixed_count/
Dfixed_count_unittests.c14 pb_byte_t buffer[Message1_size]; in main()
40 pb_byte_t input[] = {0x08, 0x00, 0x08, 0x01, 0x08, 0x02, 0x08, 0x03}; in main()
60 pb_byte_t buffer[Message2_size]; in main()
89 pb_byte_t buffer[Message3_size]; in main()
139 pb_byte_t buffer[256]; in main()
/nanopb-3.4.0/tests/regression/issue_558/
Dmixed.c10 pb_byte_t buf[64]; in main()
/nanopb-3.4.0/tests/fuzztest/
Dflakystream.c4 bool flakystream_callback(pb_istream_t *stream, pb_byte_t *buf, size_t count) in flakystream_callback()
/nanopb-3.4.0/tests/regression/issue_544/
Dsubmsg_callback.c24 pb_byte_t buf[64]; in main()
/nanopb-3.4.0/tests/regression/issue_249/
Dtest.c36 pb_byte_t buf[128] = {0}; in main()
/nanopb-3.4.0/tests/sort_by_tag/
Dsort_by_tag.c10 pb_byte_t buf[256]; in main()
/nanopb-3.4.0/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-3.4.0/tests/raw_decode/
Draw_decode.c13 static pb_byte_t g_history[HISTORY_LEN];
/nanopb-3.4.0/docs/
Dreference.md175 ### pb_byte_t subsection
180 typedef uint_least8_t pb_byte_t;
219 | `PB_LTYPE_FIXED_LENGTH_BYTES` |0x0B |Inline `pb_byte_t` array of fixed size.
254 const pb_byte_t *default_value;
321 pb_byte_t bytes[1];
470 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize);
487 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count);
650 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
729 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t bufsize);
742 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