Home | History | Annotate | Download | only in decoder

Lines Matching refs:buffer

22                     const uint8_t *buffer,
26 if (size && !buffer) {
29 r->buffer_end = buffer + size;
30 r->buffer = buffer;
43 const uint8_t *buffer = r->buffer;
44 const uint8_t *buffer_start = buffer;
49 const size_t bytes_left = buffer_end - buffer;
55 r->decrypt_cb(r->decrypt_state, buffer, r->clear_buffer, (int)n);
56 buffer = r->clear_buffer;
68 value |= (BD_VALUE)*buffer++ << shift;
73 // NOTE: Variable 'buffer' may not relate to 'r->buffer' after decryption,
74 // so we increase 'r->buffer' by the amount that 'buffer' moved, rather than
75 // assign 'buffer' to 'r->buffer'.
76 r->buffer += buffer - buffer_start;
82 // Find the end of the coded buffer
85 r->buffer--;
87 return r->buffer;
91 // Check if we have reached the end of the buffer.
93 // Variable 'count' stores the number of bits in the 'value' buffer, minus
96 // occupied, 8 for the algorithm and 8 in the buffer.
98 // When reading a byte from the user's buffer, count is filled with 8 and
99 // one byte is filled into the value buffer. When we reach the end of the