Home | History | Annotate | Download | only in src

Lines Matching full:current_buffer

51   data_buffer_t *current_buffer;
133 if (reader->current_buffer)
134 reader->allocator->free(reader->current_buffer);
184 if (!reader->current_buffer)
185 reader->current_buffer = fixed_queue_dequeue(reader->buffers);
187 size_t bytes_to_copy = reader->current_buffer->length - reader->current_buffer->offset;
191 memcpy(&buffer[bytes_consumed], &reader->current_buffer->data[reader->current_buffer->offset], bytes_to_copy);
193 reader->current_buffer->offset += bytes_to_copy;
195 if (reader->current_buffer->offset >= reader->current_buffer->length) {
196 reader->allocator->free(reader->current_buffer);
197 reader->current_buffer = NULL;