Lines Matching refs:ringbuffer
1128 uint32_t* ringbuffer = &s->block_type_rb[tree_type * 2]; in DecodeBlockTypeAndLength() local
1150 block_type = ringbuffer[1] + 1; in DecodeBlockTypeAndLength()
1152 block_type = ringbuffer[0]; in DecodeBlockTypeAndLength()
1159 ringbuffer[0] = ringbuffer[1]; in DecodeBlockTypeAndLength()
1160 ringbuffer[1] = block_type; in DecodeBlockTypeAndLength()
1271 s->ringbuffer + (s->partial_pos_out & (size_t)s->ringbuffer_mask); in WriteRingBuffer()
1314 memcpy(s->ringbuffer, s->ringbuffer_end, (size_t)s->pos); in WrapRingBuffer()
1328 uint8_t* old_ringbuffer = s->ringbuffer; in BrotliEnsureRingBuffer()
1333 s->ringbuffer = (uint8_t*)BROTLI_DECODER_ALLOC(s, in BrotliEnsureRingBuffer()
1335 if (s->ringbuffer == 0) { in BrotliEnsureRingBuffer()
1337 s->ringbuffer = old_ringbuffer; in BrotliEnsureRingBuffer()
1340 s->ringbuffer[s->new_ringbuffer_size - 2] = 0; in BrotliEnsureRingBuffer()
1341 s->ringbuffer[s->new_ringbuffer_size - 1] = 0; in BrotliEnsureRingBuffer()
1344 memcpy(s->ringbuffer, old_ringbuffer, (size_t)s->pos); in BrotliEnsureRingBuffer()
1350 s->ringbuffer_end = s->ringbuffer + s->ringbuffer_size; in BrotliEnsureRingBuffer()
1375 BrotliCopyBytes(&s->ringbuffer[s->pos], &s->br, (size_t)nbytes); in CopyUncompressedBlockToOutput()
1431 if (!s->ringbuffer) { in BrotliCalculateRingBufferSize()
1805 s->ringbuffer[pos] = in ProcessCommandsInternal()
1813 s->ringbuffer[pos] = (uint8_t)literal; in ProcessCommandsInternal()
1816 BROTLI_LOG_ARRAY_INDEX(s->ringbuffer, pos); in ProcessCommandsInternal()
1825 uint8_t p1 = s->ringbuffer[(pos - 1) & s->ringbuffer_mask]; in ProcessCommandsInternal()
1826 uint8_t p2 = s->ringbuffer[(pos - 2) & s->ringbuffer_mask]; in ProcessCommandsInternal()
1853 s->ringbuffer[pos] = p1; in ProcessCommandsInternal()
1856 BROTLI_LOG_ARRAY_INDEX(s->ringbuffer, pos & s->ringbuffer_mask); in ProcessCommandsInternal()
1927 memcpy(&s->ringbuffer[pos], word, (size_t)len); in ProcessCommandsInternal()
1931 len = BrotliTransformDictionaryWord(&s->ringbuffer[pos], word, len, in ProcessCommandsInternal()
1935 i, word, transform_idx, len, &s->ringbuffer[pos])); in ProcessCommandsInternal()
1957 uint8_t* copy_dst = &s->ringbuffer[pos]; in ProcessCommandsInternal()
1958 uint8_t* copy_src = &s->ringbuffer[src_start]; in ProcessCommandsInternal()
2000 s->ringbuffer[pos] = in ProcessCommandsInternal()
2001 s->ringbuffer[(pos - s->distance_code) & s->ringbuffer_mask]; in ProcessCommandsInternal()
2102 if (s->ringbuffer != 0) { /* Pro-actively push output. */ in BrotliDecoderDecompressStream()
2529 if (s->ringbuffer != 0) { in BrotliDecoderDecompressStream()
2548 s->ringbuffer != 0 && UnwrittenBytes(s, BROTLI_FALSE) != 0); in BrotliDecoderHasMoreOutput()
2556 if ((s->ringbuffer == 0) || ((int)s->error_code < 0)) { in BrotliDecoderTakeOutput()