Lines Matching refs:buffer
26 mysqlnd_read_buffer_is_empty(const MYSQLND_READ_BUFFER * const buffer) in mysqlnd_read_buffer_is_empty() argument
28 return buffer->len? FALSE:TRUE; in mysqlnd_read_buffer_is_empty()
35 mysqlnd_read_buffer_read(MYSQLND_READ_BUFFER * buffer, const size_t count, zend_uchar * dest) in mysqlnd_read_buffer_read() argument
37 if (buffer->len >= count) { in mysqlnd_read_buffer_read()
38 memcpy(dest, buffer->data + buffer->offset, count); in mysqlnd_read_buffer_read()
39 buffer->offset += count; in mysqlnd_read_buffer_read()
40 buffer->len -= count; in mysqlnd_read_buffer_read()
48 mysqlnd_read_buffer_bytes_left(const MYSQLND_READ_BUFFER * const buffer) in mysqlnd_read_buffer_bytes_left() argument
50 return buffer->len; in mysqlnd_read_buffer_bytes_left()
57 mysqlnd_read_buffer_free(MYSQLND_READ_BUFFER ** buffer) in mysqlnd_read_buffer_free() argument
60 if (*buffer) { in mysqlnd_read_buffer_free()
61 mnd_efree((*buffer)->data); in mysqlnd_read_buffer_free()
62 mnd_efree(*buffer); in mysqlnd_read_buffer_free()
63 *buffer = NULL; in mysqlnd_read_buffer_free()