Lines Matching refs:ostream
115 z_stream ostream; member
135 state->ostream.zalloc = zlib_zalloc; in zlib_stateful_init()
136 state->ostream.zfree = zlib_zfree; in zlib_stateful_init()
137 state->ostream.opaque = Z_NULL; in zlib_stateful_init()
138 state->ostream.next_in = Z_NULL; in zlib_stateful_init()
139 state->ostream.next_out = Z_NULL; in zlib_stateful_init()
140 err = deflateInit_(&state->ostream, Z_DEFAULT_COMPRESSION, in zlib_stateful_init()
156 deflateEnd(&state->ostream); in zlib_stateful_finish()
170 state->ostream.next_in = in; in zlib_stateful_compress_block()
171 state->ostream.avail_in = ilen; in zlib_stateful_compress_block()
172 state->ostream.next_out = out; in zlib_stateful_compress_block()
173 state->ostream.avail_out = olen; in zlib_stateful_compress_block()
175 err = deflate(&state->ostream, Z_SYNC_FLUSH); in zlib_stateful_compress_block()
178 if (state->ostream.avail_out > olen) in zlib_stateful_compress_block()
180 return (ossl_ssize_t)(olen - state->ostream.avail_out); in zlib_stateful_compress_block()