Home | History | Annotate | Download | only in base

Lines Matching full:bytes

93 void CompoundBuffer::CropFront(int bytes) {
96 if (total_bytes_ <= bytes) {
101 total_bytes_ -= bytes;
102 while (!chunks_.empty() && chunks_.front().size <= bytes) {
103 bytes -= chunks_.front().size;
106 if (!chunks_.empty() && bytes > 0) {
107 chunks_.front().start += bytes;
108 chunks_.front().size -= bytes;
110 bytes = 0;
112 DCHECK_EQ(bytes, 0);
115 void CompoundBuffer::CropBack(int bytes) {
118 if (total_bytes_ <= bytes) {
123 total_bytes_ -= bytes;
124 while (!chunks_.empty() && chunks_.back().size <= bytes) {
125 bytes -= chunks_.back().size;
128 if (!chunks_.empty() && bytes > 0) {
129 chunks_.back().size -= bytes;
131 bytes = 0;
133 DCHECK_EQ(bytes, 0);
210 // Reply with the number of bytes remaining in the current buffer.
239 // Rewind one buffer and rewind data offset by |count| bytes.