Lines Matching refs:outbuf
190 ZSTD_outBuffer outbuf; in zstd_stateful_compress_block() local
198 outbuf.dst = out; in zstd_stateful_compress_block()
199 outbuf.size = olen; in zstd_stateful_compress_block()
200 outbuf.pos = 0; in zstd_stateful_compress_block()
207 ret = ZSTD_endStream(state->compressor, &outbuf); in zstd_stateful_compress_block()
221 ret = ZSTD_compressStream2(state->compressor, &outbuf, &inbuf, ZSTD_e_continue); in zstd_stateful_compress_block()
231 ret = ZSTD_flushStream(state->compressor, &outbuf); in zstd_stateful_compress_block()
236 if (outbuf.pos > OSSL_SSIZE_MAX) in zstd_stateful_compress_block()
238 fret = (ossl_ssize_t)outbuf.pos; in zstd_stateful_compress_block()
249 ZSTD_outBuffer outbuf; in zstd_stateful_expand_block() local
257 outbuf.dst = out; in zstd_stateful_expand_block()
258 outbuf.size = olen; in zstd_stateful_expand_block()
259 outbuf.pos = 0; in zstd_stateful_expand_block()
268 ret = ZSTD_decompressStream(state->decompressor, &outbuf, &inbuf); in zstd_stateful_expand_block()
278 if (outbuf.pos > OSSL_SSIZE_MAX) in zstd_stateful_expand_block()
280 fret = (ossl_ssize_t)outbuf.pos; in zstd_stateful_expand_block()
464 ZSTD_outBuffer outbuf; member
568 OPENSSL_free(ctx->compress.outbuf.dst); in bio_zstd_free()
650 if (ctx->compress.outbuf.dst == NULL) { in bio_zstd_write()
651 ctx->compress.outbuf.dst = OPENSSL_malloc(ctx->compress.bufsize); in bio_zstd_write()
652 if (ctx->compress.outbuf.dst == NULL) { in bio_zstd_write()
656 ctx->compress.outbuf.size = ctx->compress.bufsize; in bio_zstd_write()
657 ctx->compress.outbuf.pos = 0; in bio_zstd_write()
666 while (ctx->compress.write_pos < ctx->compress.outbuf.pos) { in bio_zstd_write()
667 … ret = BIO_write(next, (unsigned char*)ctx->compress.outbuf.dst + ctx->compress.write_pos, in bio_zstd_write()
668 ctx->compress.outbuf.pos - ctx->compress.write_pos); in bio_zstd_write()
683 ctx->compress.outbuf.pos = 0; in bio_zstd_write()
684 ctx->compress.outbuf.size = ctx->compress.bufsize; in bio_zstd_write()
687 zret = ZSTD_compressStream2(ctx->compress.state, &ctx->compress.outbuf, &inBuf, ZSTD_e_end); in bio_zstd_write()
708 if (ctx->compress.outbuf.dst == NULL) in bio_zstd_flush()
713 ctx->compress.outbuf.pos = 0; in bio_zstd_flush()
714 ctx->compress.outbuf.size = ctx->compress.bufsize; in bio_zstd_flush()
718 while (ctx->compress.write_pos < ctx->compress.outbuf.pos) { in bio_zstd_flush()
719 … ret = BIO_write(next, (unsigned char*)ctx->compress.outbuf.dst + ctx->compress.write_pos, in bio_zstd_flush()
720 ctx->compress.outbuf.pos - ctx->compress.write_pos); in bio_zstd_flush()
729 ctx->compress.outbuf.pos = 0; in bio_zstd_flush()
730 ctx->compress.outbuf.size = ctx->compress.bufsize; in bio_zstd_flush()
733 zret = ZSTD_flushStream(ctx->compress.state, &ctx->compress.outbuf); in bio_zstd_flush()
797 if (ctx->compress.outbuf.dst != NULL) { in bio_zstd_ctrl()
798 tmp = OPENSSL_realloc(ctx->compress.outbuf.dst, obs); in bio_zstd_ctrl()
801 ctx->compress.outbuf.dst = tmp; in bio_zstd_ctrl()
815 if (ctx->compress.outbuf.pos < ctx->compress.outbuf.size) in bio_zstd_ctrl()