Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 12 of 12) sorted by relevance

/nanopb-3.4.0/tests/alltypes_proto3/
DSConscript14 # match byte-per-byte to the protoc output.
/nanopb-3.4.0/
Dpb_encode.c576 pb_byte_t byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32() local
581 byte |= 0x80; in pb_encode_varint_32()
582 buffer[i++] = byte; in pb_encode_varint_32()
583 byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32()
589 byte = (pb_byte_t)(byte | ((high & 0x07) << 4)); in pb_encode_varint_32()
594 byte |= 0x80; in pb_encode_varint_32()
595 buffer[i++] = byte; in pb_encode_varint_32()
596 byte = (pb_byte_t)(high & 0x7F); in pb_encode_varint_32()
601 buffer[i++] = byte; in pb_encode_varint_32()
611 pb_byte_t byte = (pb_byte_t)value; in pb_encode_varint() local
[all …]
Dpb_decode.c172 pb_byte_t byte; in pb_decode_varint32_eof() local
175 if (!pb_readbyte(stream, &byte)) in pb_decode_varint32_eof()
188 if ((byte & 0x80) == 0) in pb_decode_varint32_eof()
191 result = byte; in pb_decode_varint32_eof()
197 result = byte & 0x7F; in pb_decode_varint32_eof()
201 if (!pb_readbyte(stream, &byte)) in pb_decode_varint32_eof()
208 bool valid_extension = ((byte & 0x7F) == 0x00 || in pb_decode_varint32_eof()
209 ((result >> 31) != 0 && byte == sign_extension)); in pb_decode_varint32_eof()
218 if ((byte & 0x70) != 0 && (byte & 0x78) != 0x78) in pb_decode_varint32_eof()
222 result |= (uint32_t)(byte & 0x0F) << bitpos; in pb_decode_varint32_eof()
[all …]
/nanopb-3.4.0/tests/alltypes/
DSConscript15 # match byte-per-byte to the protoc output.
/nanopb-3.4.0/tests/without_64bit/
DSConscript30 # match byte-per-byte to the protoc output.
/nanopb-3.4.0/tests/site_scons/platforms/stm32/
Dstm32_ram.ld121 /* Location counter can end up 2byte aligned with narrow Thumb code but
123 which must be 4byte aligned */
/nanopb-3.4.0/generator/proto/
Dnanopb.proto39 DS_1 = 1; // 1 word; up to 15 byte fields, no arrays
40 DS_2 = 2; // 2 words; up to 4095 byte fields, 4095 entry arrays
41 DS_4 = 4; // 4 words; up to 2^32-1 byte fields, 2^16-1 entry arrays
/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c27 uint8_t byte; in callback_check() local
32 if (!pb_read(stream, &byte, 1)) in callback_check()
35 if (byte != ref->bytes[i]) in callback_check()
/nanopb-3.4.0/docs/
Dreference.md177 Type used for storing byte-sized data, such as raw binary input and
184 bits need to be used for each byte.
214 | `PB_LTYPE_BYTES` |0x06 |Structure with `size_t` field and byte array.
317 An byte array with a field for storing the length:
733 | buf | Pointer to byte array to read from.
734 | bufsize | Size of the byte array. Typically length of the message to be decoded.
Dconcepts.md168 `(nanopb).max_size` is also set, then bytes map to an inline byte
Dmigration.md248 by a null byte, which is read as zero tag value. Most other protobuf
/nanopb-3.4.0/generator/proto/google/protobuf/
Ddescriptor.proto347 // byte sequence to a string field.
349 // However, an extension field still accepts non-UTF-8 byte sequences.
869 // the last relevant byte (so the length of the text = end - begin).