Lines Matching refs:buf

199 php_mysqlnd_read_error_from_line(const zend_uchar * const buf, const size_t buf_len,  in php_mysqlnd_read_error_from_line()  argument
203 const zend_uchar *p = buf; in php_mysqlnd_read_error_from_line()
220 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) { in php_mysqlnd_read_error_from_line()
227 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line()
228 error_msg_len = MIN((int)((buf_len - (p - buf))), (int) (error_buf_len - 1)); in php_mysqlnd_read_error_from_line()
290 zend_uchar * buf, size_t buf_size, const char * const packet_type_as_text, in mysqlnd_read_packet_header_and_body() argument
294 DBG_INF_FMT("buf=%p size=%u", buf, buf_size); in mysqlnd_read_packet_header_and_body()
307 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
327 zend_uchar buf[2048]; in php_mysqlnd_greet_read() local
328 const zend_uchar * p = buf; in php_mysqlnd_greet_read()
329 const zend_uchar * const begin = buf; in php_mysqlnd_greet_read()
340 …dy(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, sizeof(buf), "greeting",… in php_mysqlnd_greet_read()
348 if (packet->header.size < sizeof(buf)) { in php_mysqlnd_greet_read()
353 buf[packet->header.size] = '\0'; in php_mysqlnd_greet_read()
410 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
420 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
650 zend_uchar *buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_auth_response_read() local
651 const zend_uchar * p = buf; in php_mysqlnd_auth_response_read()
652 const zend_uchar * const begin = buf; in php_mysqlnd_auth_response_read()
658 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "OK", PRO… in php_mysqlnd_auth_response_read()
667 buf[packet->header.size] = '\0'; in php_mysqlnd_auth_response_read()
683 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
688 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
714 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
809 zend_uchar * buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_ok_read() local
810 const zend_uchar * p = buf; in php_mysqlnd_ok_read()
811 const zend_uchar * const begin = buf; in php_mysqlnd_ok_read()
816 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "OK", PRO… in php_mysqlnd_ok_read()
849 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
903 zend_uchar * buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_eof_read() local
904 const zend_uchar * p = buf; in php_mysqlnd_eof_read()
905 const zend_uchar * const begin = buf; in php_mysqlnd_eof_read()
909 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "EOF", PR… in php_mysqlnd_eof_read()
1040 zend_uchar * buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_header_read() local
1041 const zend_uchar * p = buf; in php_mysqlnd_rset_header_read()
1042 const zend_uchar * const begin = buf; in php_mysqlnd_rset_header_read()
1047 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "resultse… in php_mysqlnd_rset_header_read()
1107 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1181 zend_uchar * buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_field_read() local
1182 const zend_uchar * p = buf; in php_mysqlnd_rset_field_read()
1183 const zend_uchar * const begin = buf; in php_mysqlnd_rset_field_read()
1190 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "field", … in php_mysqlnd_rset_field_read()
1270 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1842 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_stats_read() local
1846 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "statisti… in php_mysqlnd_stats_read()
1851 memcpy(packet->message.s, buf, packet->header.size); in php_mysqlnd_stats_read()
1889 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_prepare_read() local
1890 zend_uchar *p = buf; in php_mysqlnd_prepare_read()
1891 const zend_uchar * const begin = buf; in php_mysqlnd_prepare_read()
1896 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "prepare"… in php_mysqlnd_prepare_read()
1972 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_chg_user_read() local
1973 zend_uchar *p = buf; in php_mysqlnd_chg_user_read()
1974 const zend_uchar * const begin = buf; in php_mysqlnd_chg_user_read()
1978 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "change u… in php_mysqlnd_chg_user_read()
1992 …if (packet->header.size == 1 && buf[0] == EODATA_MARKER && packet->server_capabilities & CLIENT_SE… in php_mysqlnd_chg_user_read()
2007 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
2011 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
2084 zend_uchar buf[SHA256_PK_REQUEST_RESP_BUFFER_SIZE]; in php_mysqlnd_sha256_pk_request_response_read() local
2085 zend_uchar *p = buf; in php_mysqlnd_sha256_pk_request_response_read()
2086 const zend_uchar * const begin = buf; in php_mysqlnd_sha256_pk_request_response_read()
2091 …dy(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, sizeof(buf), "SHA256_PK_… in php_mysqlnd_sha256_pk_request_response_read()
2099 packet->public_key_len = packet->header.size - (p - buf); in php_mysqlnd_sha256_pk_request_response_read()