Lines Matching refs:masked_pos
95 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWriteTail() local
96 if (BROTLI_PREDICT_FALSE(masked_pos < rb->tail_size_)) { in RingBufferWriteTail()
98 const size_t p = rb->size_ + masked_pos; in RingBufferWriteTail()
100 BROTLI_MIN(size_t, n, rb->tail_size_ - masked_pos)); in RingBufferWriteTail()
130 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWrite() local
134 if (BROTLI_PREDICT_TRUE(masked_pos + n <= rb->size_)) { in RingBufferWrite()
136 memcpy(&rb->buffer_[masked_pos], bytes, n); in RingBufferWrite()
140 memcpy(&rb->buffer_[masked_pos], bytes, in RingBufferWrite()
141 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
143 memcpy(&rb->buffer_[0], bytes + (rb->size_ - masked_pos), in RingBufferWrite()
144 n - (rb->size_ - masked_pos)); in RingBufferWrite()