search for: rx_token

Displaying 1 result from an estimated 1 matches for "rx_token".

Did you mean: c_token
2020 Feb 06
0
[PATCH] Add support for zstd compression
...r, MAX_DATA_COUNT); + dbuf = new_array(char, out_buffer_size); + if (!cbuf || !dbuf) + out_of_memory("recv_zstd_token"); + + zstd_in_buff.src = cbuf; + zstd_out_buff.dst = dbuf; + + decomp_init_done = 1; + } + + do { + switch (recv_state) { + case r_init: + recv_state = r_idle; + rx_token = 0; + break; + + case r_idle: + flag = read_byte(f); + if ((flag & 0xC0) == DEFLATED_DATA) { + n = ((flag & 0x3f) << 8) + read_byte(f); + read_buf(f, cbuf, n); + + zstd_in_buff.size = n; + zstd_in_buff.pos = 0; + + recv_state = r_inflating; + + } else if (flag == END_FL...