Lines Matching defs:byte
334 uint8_t byte;
340 byte = *ptr;
341 out |= (uint64_t)(byte & 0x7F) << bitpos;
344 } while (byte & 0x80);
751 uint8_t byte = val & 0x7fU;
753 if (val) byte |= 0x80U;
754 buf[i++] = byte;
811 /* TODO(haberman): byte-swap for big endian. */
816 /* TODO(haberman): byte-swap for big endian. */
1402 * have a null-terminating byte since it may be a raw binary buffer. */
2072 * 1. We can read a 4-byte value from any address without crashing
4106 #define WRITE(byte) \
4108 if (dst < len) buf[dst - 1] = byte; \
6944 ** be capable of suspending/resuming from any byte in the stream. This
7201 * bytes. If there are any unconsumed bytes, returns a short byte count. */
7230 /* Checkpoint was in residual buf; append user byte(s) to residual buf. */
7330 uint8_t byte = 0x80;
7333 for(bitpos = 0; bitpos < 70 && (byte & 0x80); bitpos += 7) {
7334 CHECK_RETURN(getbytes(d, &byte, 1));
7335 *u64 |= (uint64_t)(byte & 0x7F) << bitpos;
7337 if(bitpos == 70 && (byte & 0x80)) {
7388 * TODO: proper byte swapping for big-endian machines. */
7395 * TODO: proper byte swapping for big-endian machines. */
7989 ** emit even their first byte.
8300 /* TODO(haberman): byte-swap for big endian. */
8305 /* TODO(haberman): byte-swap for big endian. */
9491 /* Last group contains only two input bytes, one output byte. */
12534 unsigned char byte = (unsigned char)c;
12535 _upb_snprintf(escape_buf, sizeof(escape_buf), "\\u%04x", (int)byte);