Lines Matching refs:bytes
14 // Returns the bytes which can be read from the buffer. There is no
15 // guarantee that the bytes are contiguous.
25 // returns the number of bytes free in this buffer.
27 // number of bytes free.
43 // appends up-to-'size' bytes to the buffer.
45 // bytes - bytes which are read, and copied into the buffer.
46 // size - number of bytes which are read and copied.
48 virtual int Write(const char* bytes, int size) = 0;
58 // size - the amount of data (in bytes) that it is safe to write to ptr.
69 // size - the amount of data (in bytes) that it is safe to read
73 // Reads bytes out of the buffer, and writes them into 'bytes'.
74 // Returns the number of bytes read.
75 // Consumes bytes from the buffer (possibly, but not necessarily
78 // bytes - the pointer into which bytes are read from this buffer
80 // size - number of bytes which are read and copied.
83 // the number of bytes read from 'bytes'
84 virtual int Read(char* bytes, int size) = 0;
91 // reserves contiguous writable empty space in the buffer of size bytes.