Lines Matching refs:taken
113 int taken = InternalRead(NULL, size, true, 0);
114 DCHECK_EQ(taken, size);
121 // Record the number of bytes taken.
122 int taken = 0;
123 // Loop until we taken enough bytes and rewind by the desired |size|.
124 while (taken < size) {
134 int consumed = std::min(size - taken, current_buffer_offset_);
139 // Increase the amount of bytes taken in the backward direction. This
141 taken += consumed;
164 DCHECK_EQ(taken, size);
186 int taken = 0;
192 while (taken < size) {
207 int copied = std::min(size - taken, remaining_bytes_in_buffer);
211 memcpy(data + taken, buffer->data() + current_buffer_offset, copied);
215 taken += copied;
248 // counters by |taken|.
249 forward_bytes_ -= taken;
250 backward_bytes_ += taken;
261 return taken;