Lines Matching refs:size_t
30 if ((size_t)(p - begin) > packet->header.size) { \
180 size_t
199 php_mysqlnd_read_error_from_line(const zend_uchar * const buf, const size_t buf_len, in php_mysqlnd_read_error_from_line()
200 char *error, const size_t error_buf_len, in php_mysqlnd_read_error_from_line()
204 size_t error_msg_len = 0; 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()
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()
496 size_t php_mysqlnd_auth_write(void * _packet) in php_mysqlnd_auth_write()
500 size_t len; in php_mysqlnd_auth_write()
557 size_t real_db_len = MIN(MYSQLND_MAX_ALLOWED_DB_LEN, packet->db_len); in php_mysqlnd_auth_write()
581 size_t ca_payload_len = 0; in php_mysqlnd_auth_write()
588 size_t value_len = Z_STRLEN_P(entry_value); in php_mysqlnd_auth_write()
606 size_t value_len = Z_STRLEN_P(entry_value); in php_mysqlnd_auth_write()
636 …size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, error_i… in php_mysqlnd_auth_write()
671 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; in php_mysqlnd_auth_response_read()
705 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
710 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
736 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
788 static size_t
808 …size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, error_i… in php_mysqlnd_change_auth_response_write()
846 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length : OK_BUFFER_SIZE; in php_mysqlnd_ok_read()
887 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
943 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read()
1013 size_t php_mysqlnd_cmd_write(void * _packet) in php_mysqlnd_cmd_write()
1023 size_t sent = 0; in php_mysqlnd_cmd_write()
1048 size_t tmp_len = packet->argument.l + 1 + MYSQLND_HEADER_SIZE; in php_mysqlnd_cmd_write()
1103 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read()
1107 size_t len; in php_mysqlnd_rset_header_read()
1171 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1220 static size_t rset_field_offsets[] =
1248 size_t buf_len = pfc->cmd_buffer.length, total_len = 0; in php_mysqlnd_rset_field_read()
1255 unsigned int i, field_count = sizeof(rset_field_offsets)/sizeof(size_t); in php_mysqlnd_rset_field_read()
1354 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1465 size_t * data_size, zend_bool persistent_alloc) in php_mysqlnd_read_row_ex()
1471 size_t prealloc_more_bytes; in php_mysqlnd_read_row_ex()
1621 Z_STRLEN_P(current_field) : (size_t)(p - orig_p)); in php_mysqlnd_rowp_read_binary_protocol()
1643 size_t data_size = row_buffer->app; in php_mysqlnd_rowp_read_text_protocol_aux()
1766 …const size_t tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, (uint64_t) Z_LVAL_P(current_field)); in php_mysqlnd_rowp_read_text_protocol_aux()
1830 size_t data_size = 0; in php_mysqlnd_rowp_read()
1955 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read()
2005 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read()
2100 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_chg_user_read()
2136 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
2140 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
2186 size_t php_mysqlnd_sha256_pk_request_write(void * _packet) in php_mysqlnd_sha256_pk_request_write()
2194 size_t sent; in php_mysqlnd_sha256_pk_request_write()
2729 const zend_uchar * const arg, const size_t arg_len, in MYSQLND_METHOD()