Lines Matching refs:to_be_sent
55 zend_uchar *uncompressed_payload, size_t to_be_sent, zend_uchar *compress_buf) { in write_compressed_packet() argument
58 size_t tmp_complen = to_be_sent; in write_compressed_packet()
61 uncompressed_payload, to_be_sent)) in write_compressed_packet()
63 int3store(compress_buf + MYSQLND_HEADER_SIZE, to_be_sent); in write_compressed_packet()
67 …cpy(compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, uncompressed_payload, to_be_sent); in write_compressed_packet()
68 payload_size = to_be_sent; in write_compressed_packet()
124 size_t to_be_sent; in MYSQLND_METHOD() local
137 to_be_sent = MIN(left, MYSQLND_MAX_PACKET_SIZE); in MYSQLND_METHOD()
138 DBG_INF_FMT("to_be_sent=%zu", to_be_sent); in MYSQLND_METHOD()
146 int3store(uncompressed_payload, to_be_sent); in MYSQLND_METHOD()
148 if (to_be_sent <= MYSQLND_MAX_PACKET_SIZE - MYSQLND_HEADER_SIZE) { in MYSQLND_METHOD()
151 uncompressed_payload, to_be_sent + MYSQLND_HEADER_SIZE, compress_buf); in MYSQLND_METHOD()
162 to_be_sent + MYSQLND_HEADER_SIZE - split_off_bytes, compress_buf); in MYSQLND_METHOD()
170 int3store(p, to_be_sent); in MYSQLND_METHOD()
172 …bytes_sent = vio->data->m.network_write(vio, p, to_be_sent + MYSQLND_HEADER_SIZE, conn_stats, erro… in MYSQLND_METHOD()
178 p += to_be_sent; in MYSQLND_METHOD()
179 left -= to_be_sent; in MYSQLND_METHOD()
188 } while (bytes_sent > 0 && (left > 0 || to_be_sent == MYSQLND_MAX_PACKET_SIZE)); in MYSQLND_METHOD()