Home | History | Annotate | Download | only in utils

Lines Matching refs:buf_

46     assert(bw->buf_ != NULL);
47 memcpy(new_buf, bw->buf_, bw->pos_);
49 WebPSafeFree(bw->buf_);
50 bw->buf_ = new_buf;
67 if (pos > 0) bw->buf_[pos - 1]++;
71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value;
73 bw->buf_[pos++] = bits;
170 bw->buf_ = NULL;
178 return bw->buf_;
186 memcpy(bw->buf_ + bw->pos_, data, size);
193 WebPSafeFree(bw->buf_);
209 const size_t max_bytes = bw->end_ - bw->buf_;
210 const size_t current_size = bw->cur_ - bw->buf_;
228 memcpy(allocated_buf, bw->buf_, current_size);
230 WebPSafeFree(bw->buf_);
231 bw->buf_ = allocated_buf;
232 bw->cur_ = bw->buf_ + current_size;
233 bw->end_ = bw->buf_ + allocated_size;
244 WebPSafeFree(bw->buf_);
252 const uint64_t extra_size = (bw->end_ - bw->buf_) + MIN_EXTRA_SIZE;
255 bw->cur_ = bw->buf_;
288 const uint64_t extra_size = (bw->end_ - bw->buf_) + MIN_EXTRA_SIZE;
291 bw->cur_ = bw->buf_;
316 return bw->buf_;