Lines Matching refs:to_be_sent
57 zend_uchar *uncompressed_payload, size_t to_be_sent, zend_uchar *compress_buf) { in write_compressed_packet() argument
60 size_t tmp_complen = to_be_sent; in write_compressed_packet()
63 uncompressed_payload, to_be_sent)) in write_compressed_packet()
65 int3store(compress_buf + MYSQLND_HEADER_SIZE, to_be_sent); in write_compressed_packet()
69 …cpy(compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, uncompressed_payload, to_be_sent); in write_compressed_packet()
70 payload_size = to_be_sent; in write_compressed_packet()
126 size_t to_be_sent; in MYSQLND_METHOD() local
139 to_be_sent = MIN(left, MYSQLND_MAX_PACKET_SIZE); in MYSQLND_METHOD()
140 DBG_INF_FMT("to_be_sent=%u", to_be_sent); in MYSQLND_METHOD()
148 int3store(uncompressed_payload, to_be_sent); in MYSQLND_METHOD()
150 if (to_be_sent <= MYSQLND_MAX_PACKET_SIZE - MYSQLND_HEADER_SIZE) { in MYSQLND_METHOD()
153 uncompressed_payload, to_be_sent + MYSQLND_HEADER_SIZE, compress_buf); in MYSQLND_METHOD()
164 to_be_sent + MYSQLND_HEADER_SIZE - split_off_bytes, compress_buf); in MYSQLND_METHOD()
172 int3store(p, to_be_sent); in MYSQLND_METHOD()
174 …bytes_sent = vio->data->m.network_write(vio, p, to_be_sent + MYSQLND_HEADER_SIZE, conn_stats, erro… in MYSQLND_METHOD()
180 p += to_be_sent; in MYSQLND_METHOD()
181 left -= to_be_sent; in MYSQLND_METHOD()
190 } while (bytes_sent > 0 && (left > 0 || to_be_sent == MYSQLND_MAX_PACKET_SIZE)); in MYSQLND_METHOD()