Lines Matching refs:compress_buf
57 zend_uchar *uncompressed_payload, size_t to_be_sent, zend_uchar *compress_buf) { in write_compressed_packet() argument
62 …if (PASS == pfc->data->m.encode((compress_buf + COMPRESSED_HEADER_SIZE + MYSQLND_HEADER_SIZE), &tm… in write_compressed_packet()
65 int3store(compress_buf + MYSQLND_HEADER_SIZE, to_be_sent); in write_compressed_packet()
68 int3store(compress_buf + MYSQLND_HEADER_SIZE, 0); in write_compressed_packet()
69 …memcpy(compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, uncompressed_payload, to_be_se… in write_compressed_packet()
73 int3store(compress_buf, payload_size); in write_compressed_packet()
74 int1store(compress_buf + 3, pfc->data->compressed_envelope_packet_no); in write_compressed_packet()
77 …ssize_t bytes_sent = vio->data->m.network_write(vio, compress_buf, payload_size + MYSQLND_HEADER_S… in write_compressed_packet()
84 compress_buf + MYSQLND_HEADER_SIZE + COMPRESSED_HEADER_SIZE, payload_size); in write_compressed_packet()
125 zend_uchar * compress_buf = NULL; in MYSQLND_METHOD() local
135 compress_buf = mnd_emalloc(comp_buf_size); in MYSQLND_METHOD()
153 uncompressed_payload, to_be_sent + MYSQLND_HEADER_SIZE, compress_buf); in MYSQLND_METHOD()
160 uncompressed_payload, split_off_bytes, compress_buf); in MYSQLND_METHOD()
164 to_be_sent + MYSQLND_HEADER_SIZE - split_off_bytes, compress_buf); in MYSQLND_METHOD()
199 if (compress_buf) { in MYSQLND_METHOD()
200 mnd_efree(compress_buf); in MYSQLND_METHOD()