Lines Matching refs:pb_byte_t

23 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()
594 byte = (pb_byte_t)(high & 0x7F); in pb_encode_varint_32()
609 pb_byte_t byte = (pb_byte_t)value; in pb_encode_varint()
636 pb_byte_t bytes[4]; in pb_encode_fixed32()
637 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed32()
638 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF); in pb_encode_fixed32()
639 bytes[2] = (pb_byte_t)((val >> 16) & 0xFF); in pb_encode_fixed32()
640 bytes[3] = (pb_byte_t)((val >> 24) & 0xFF); in pb_encode_fixed32()
648 pb_byte_t bytes[8]; in pb_encode_fixed64()
649 bytes[0] = (pb_byte_t)(val & 0xFF); in pb_encode_fixed64()
650 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF); in pb_encode_fixed64()
651 bytes[2] = (pb_byte_t)((val >> 16) & 0xFF); in pb_encode_fixed64()
652 bytes[3] = (pb_byte_t)((val >> 24) & 0xFF); in pb_encode_fixed64()
653 bytes[4] = (pb_byte_t)((val >> 32) & 0xFF); in pb_encode_fixed64()
654 bytes[5] = (pb_byte_t)((val >> 40) & 0xFF); in pb_encode_fixed64()
655 bytes[6] = (pb_byte_t)((val >> 48) & 0xFF); in pb_encode_fixed64()
656 bytes[7] = (pb_byte_t)((val >> 56) & 0xFF); in pb_encode_fixed64()
702 bool checkreturn pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) in pb_encode_string()
913 return pb_encode_string(stream, (const pb_byte_t*)str, size); in pb_enc_string()
937 return pb_encode_string(stream, (const pb_byte_t*)field->pData, (size_t)field->data_size); in pb_enc_fixed_length_bytes()