Home | History | Annotate | Download | only in flip_server

Lines Matching refs:bytes

84 // appends up-to-'size' bytes to the simplebuffer.
85 int SimpleBuffer::Write(const char* bytes, int size) {
90 memcpy(storage_ + write_idx_, bytes, size);
117 // returns the number of bytes read into 'bytes'
118 int SimpleBuffer::Read(char* bytes, int size) {
125 memcpy(bytes, read_ptr, read_size);
148 // Can reclaim space from already read bytes by shifting
154 // what we need is to have at least size bytes available for writing.
155 // This implies that the buffer needs to be at least size bytes +
156 // read_size bytes long. Since we want linear time extensions in the case
159 // bytes, whichever is larger.