Home | History | Annotate | Download | only in base

Lines Matching refs:buffer

5 // CompoundBuffer implements a data buffer that is composed of several pieces,
9 // and assembling them into one buffer on the receiving side.
13 // a protocol buffer message.
15 // Mutations to the buffer are not thread-safe. Immutability can be ensured
41 // Adds new chunk to the buffer. |start| defines position of the chunk
42 // within the |buffer|. |size| is the size of the chunk that is being
43 // added, not size of the |buffer|.
44 void Append(net::IOBuffer* buffer, int size);
45 void Append(net::IOBuffer* buffer, const char* start, int size);
46 void Append(const CompoundBuffer& buffer);
47 void Prepend(net::IOBuffer* buffer, int size);
48 void Prepend(net::IOBuffer* buffer, const char* start, int size);
49 void Prepend(const CompoundBuffer& buffer);
55 // Drop |bytes| bytes from the beginning or the end of the buffer.
59 // Current size of the buffer.
62 // Locks the buffer. After the buffer is locked, no data can be
77 // Clears the buffer, and initializes it with the interval from |buffer|
85 DataChunk(net::IOBuffer* buffer, const char* start, int size);
88 scoped_refptr<net::IOBuffer> buffer;
104 // Caller keeps ownership of |buffer|. |buffer| must be locked.
105 explicit CompoundBufferInputStream(const CompoundBuffer* buffer);