Home | History | Annotate | Download | only in utils

Lines Matching defs:buffer

17     size_t read(void* buffer, size_t size) override;
19 size_t peek(void* buffer, size_t size) const override;
40 // Total size of the buffer.
51 // Buffer up to size bytes from the stream, and copy to dst if non-
93 // Only allow a rewind if we have not exceeded the buffer.
123 // Data needs to be buffered. Buffer up to the lesser of the size requested
124 // and the remainder of the max buffer size.
126 char* buffer = fBuffer + fOffset;
127 const size_t buffered = fStream->read(buffer, bytesToBuffer);
133 // Copy the buffer to the destination buffer and update the amount read.
135 memcpy(dst, buffer, buffered);
149 // If we have read past the end of the buffer, rewinding is no longer
163 // This stream is not able to buffer.
185 // and the destination buffer.
193 // Buffer any more data that should be buffered, and copy it to the
199 // and the destination buffer.