Lines Matching refs:compress_buf
55 zend_uchar *uncompressed_payload, size_t to_be_sent, zend_uchar *compress_buf) { in write_compressed_packet() argument
60 …if (PASS == pfc->data->m.encode((compress_buf + COMPRESSED_HEADER_SIZE + MYSQLND_HEADER_SIZE), &tm… in write_compressed_packet()
63 int3store(compress_buf + MYSQLND_HEADER_SIZE, to_be_sent); in write_compressed_packet()
66 int3store(compress_buf + MYSQLND_HEADER_SIZE, 0); in write_compressed_packet()
67 …memcpy(compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, uncompressed_payload, to_be_se… in write_compressed_packet()
71 int3store(compress_buf, payload_size); in write_compressed_packet()
72 int1store(compress_buf + 3, pfc->data->compressed_envelope_packet_no); in write_compressed_packet()
75 …ssize_t bytes_sent = vio->data->m.network_write(vio, compress_buf, payload_size + MYSQLND_HEADER_S… in write_compressed_packet()
82 compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, payload_size); in write_compressed_packet()
123 zend_uchar * compress_buf = NULL; in MYSQLND_METHOD() local
133 compress_buf = mnd_emalloc(comp_buf_size); in MYSQLND_METHOD()
151 uncompressed_payload, to_be_sent + MYSQLND_HEADER_SIZE, compress_buf); in MYSQLND_METHOD()
158 uncompressed_payload, split_off_bytes, compress_buf); in MYSQLND_METHOD()
162 to_be_sent + MYSQLND_HEADER_SIZE - split_off_bytes, compress_buf); in MYSQLND_METHOD()
197 if (compress_buf) { in MYSQLND_METHOD()
198 mnd_efree(compress_buf); in MYSQLND_METHOD()