Lines Matching refs:byte
172 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()
223 if (bitpos == 35 && (byte & 0x70) != 0) in pb_decode_varint32_eof()
242 pb_byte_t byte; in pb_decode_varint() local
251 if (!pb_readbyte(stream, &byte)) in pb_decode_varint()
254 result |= (uint64_t)(byte & 0x7F) << bitpos; in pb_decode_varint()
256 } while (byte & 0x80); in pb_decode_varint()
265 pb_byte_t byte; in pb_skip_varint() local
268 if (!pb_read(stream, &byte, 1)) in pb_skip_varint()
270 } while (byte & 0x80); in pb_skip_varint()