Lines Matching refs:buffer
28 mysqlnd_read_buffer_is_empty(const MYSQLND_READ_BUFFER * const buffer) in mysqlnd_read_buffer_is_empty() argument
30 return buffer->len? FALSE:TRUE; in mysqlnd_read_buffer_is_empty()
37 mysqlnd_read_buffer_read(MYSQLND_READ_BUFFER * buffer, const size_t count, zend_uchar * dest) in mysqlnd_read_buffer_read() argument
39 if (buffer->len >= count) { in mysqlnd_read_buffer_read()
40 memcpy(dest, buffer->data + buffer->offset, count); in mysqlnd_read_buffer_read()
41 buffer->offset += count; in mysqlnd_read_buffer_read()
42 buffer->len -= count; in mysqlnd_read_buffer_read()
50 mysqlnd_read_buffer_bytes_left(const MYSQLND_READ_BUFFER * const buffer) in mysqlnd_read_buffer_bytes_left() argument
52 return buffer->len; in mysqlnd_read_buffer_bytes_left()
59 mysqlnd_read_buffer_free(MYSQLND_READ_BUFFER ** buffer) in mysqlnd_read_buffer_free() argument
62 if (*buffer) { in mysqlnd_read_buffer_free()
63 mnd_efree((*buffer)->data); in mysqlnd_read_buffer_free()
64 mnd_efree(*buffer); in mysqlnd_read_buffer_free()
65 *buffer = NULL; in mysqlnd_read_buffer_free()