equal
deleted
inserted
replaced
157 // resize to fit buf_size more bytes |
157 // resize to fit buf_size more bytes |
158 resize(buf_size); |
158 resize(buf_size); |
159 |
159 |
160 // copy into our internal buffer |
160 // copy into our internal buffer |
161 memcpy(buf + offset, buf_ptr, buf_size); |
161 memcpy(buf + offset, buf_ptr, buf_size); |
|
162 |
|
163 // update offset! |
|
164 offset += buf_size; |
162 } |
165 } |
163 |
166 |
164 bool NetworkBufferOutput::flush_write (void) { |
167 bool NetworkBufferOutput::flush_write (void) { |
165 size_t ret; |
168 size_t ret; |
166 |
169 |