Home
last modified time | relevance | path

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

/nanopb-2.7.6/tests/alltypes_proto3/
DSConscript14 # match byte-per-byte to the protoc output.
/nanopb-2.7.6/
Dpb_encode.c574 pb_byte_t byte = (pb_byte_t)(low & 0x7F); in pb_encode_varint_32() local
579 byte |= 0x80; in pb_encode_varint_32()
580 buffer[i++] = byte; 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()
592 byte |= 0x80; in pb_encode_varint_32()
593 buffer[i++] = byte; in pb_encode_varint_32()
594 byte = (pb_byte_t)(high & 0x7F); in pb_encode_varint_32()
599 buffer[i++] = byte; in pb_encode_varint_32()
609 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 result |= (uint32_t)(byte & 0x7F) << bitpos; in pb_decode_varint32_eof()
221 } while (byte & 0x80); in pb_decode_varint32_eof()
[all …]
/nanopb-2.7.6/tests/alltypes/
DSConscript15 # match byte-per-byte to the protoc output.
/nanopb-2.7.6/tests/without_64bit/
DSConscript30 # match byte-per-byte to the protoc output.
/nanopb-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/docs/
Dreference.md164 Type used for storing byte-sized data, such as raw binary input and
171 bits need to be used for each byte.
201 | `PB_LTYPE_BYTES` |0x06 |Structure with `size_t` field and byte array.
304 An byte array with a field for storing the length:
720 | buf | Pointer to byte array to read from.
721 | bufsize | Size of the byte array.
Dconcepts.md168 `(nanopb).max_size` is also set, then bytes map to an inline byte
Dmigration.md191 by a null byte, which is read as zero tag value. Most other protobuf
/nanopb-2.7.6/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).