Lines Matching refs:buffer

15     : buffer(buffer_value),
36 void CompoundBuffer::Append(net::IOBuffer* buffer,
38 // A weak check that the |start| is within |buffer|.
39 DCHECK_GE(start, buffer->data());
44 chunks_.push_back(DataChunk(buffer, start, size));
48 void CompoundBuffer::Append(net::IOBuffer* buffer, int size) {
49 Append(buffer, buffer->data(), size);
52 void CompoundBuffer::Append(const CompoundBuffer& buffer) {
53 for (DataChunkList::const_iterator it = buffer.chunks_.begin();
54 it != buffer.chunks_.end(); ++it) {
55 Append(it->buffer.get(), it->start, it->size);
59 void CompoundBuffer::Prepend(net::IOBuffer* buffer,
61 // A weak check that the |start| is within |buffer|.
62 DCHECK_GE(start, buffer->data());
67 chunks_.push_front(DataChunk(buffer, start, size));
71 void CompoundBuffer::Prepend(net::IOBuffer* buffer, int size) {
72 Prepend(buffer, buffer->data(), size);
75 void CompoundBuffer::Prepend(const CompoundBuffer& buffer) {
76 for (DataChunkList::const_iterator it = buffer.chunks_.begin();
77 it != buffer.chunks_.end(); ++it) {
78 Prepend(it->buffer.get(), it->start, it->size);
82 net::IOBuffer* buffer = new net::IOBuffer(size);
83 memcpy(buffer->data(), data, size);
84 Append(buffer, size);
88 net::IOBuffer* buffer = new net::IOBuffer(size);
89 memcpy(buffer->data(), data, size);
90 Prepend(buffer, size);
181 Append(it->buffer.get(), it->start + relative_start,
196 const CompoundBuffer* buffer)
197 : buffer_(buffer),
210 // Reply with the number of bytes remaining in the current buffer.
239 // Rewind one buffer and rewind data offset by |count| bytes.
258 // Advance the current buffer offset and position.
263 // If the current buffer is fully read, then advance to the next buffer.