Lines Matching refs:zst_outbuffer
265 ZSTD_outBuffer zst_outbuffer; member
319 s->zst_outbuffer.dst = buffer; in zstdio_init()
320 s->zst_outbuffer.size = buf_size; in zstdio_init()
349 s->zst_outbuffer.pos = 0; in zstdio_reset()
360 while (s->zst_outbuffer.pos >= 4096) { in zst_flush_intermediate()
361 bytes_to_dump = rounddown(s->zst_outbuffer.pos, 4096); in zst_flush_intermediate()
374 s->zst_outbuffer.pos -= bytes_to_dump; in zst_flush_intermediate()
375 memmove(s->zst_outbuffer.dst, in zst_flush_intermediate()
376 (char *)s->zst_outbuffer.dst + bytes_to_dump, in zst_flush_intermediate()
377 s->zst_outbuffer.pos); in zst_flush_intermediate()
394 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
396 rc = ZSTD_endStream(s->zst_stream, &s->zst_outbuffer); in zstdio_flush()
402 if (lastpos == s->zst_outbuffer.pos) { in zstdio_flush()
412 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
420 if (s->zst_outbuffer.pos != 0) { in zstdio_flush()
421 error = cb(s->zst_buffer, s->zst_outbuffer.pos, s->zst_off, in zstdio_flush()
448 rc = ZSTD_compressStream(s->zst_stream, &s->zst_outbuffer, in zstdio_write()