Lines Matching refs:buffer

12 // Blocks output buffer wrappers
22 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length,
28 buffer, max_length, (void**) next_out);
36 OutputBuffer_Grow(_BlocksOutputBuffer *buffer,
42 buffer, (void**) next_out, (Py_ssize_t) *avail_out);
48 OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, uint32_t avail_out)
50 return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out);
54 OutputBuffer_Finish(_BlocksOutputBuffer *buffer, uint32_t avail_out)
56 return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out);
60 OutputBuffer_OnError(_BlocksOutputBuffer *buffer)
62 _BlocksOutputBuffer_OnError(buffer);
65 /* The max buffer size accepted by zlib is UINT32_MAX, the initial buffer size
85 /* Initialize the buffer with an initial buffer size.
90 OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *window,
95 buffer, init_size, (void**) next_out);
108 /* Grow the buffer.
113 OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window,
142 buffer, (void**) next_out, (Py_ssize_t) *avail_out);
147 /* Finish the buffer.
152 OutputBuffer_WindowFinish(_BlocksOutputBuffer *buffer, _Uint32Window *window,
156 return _BlocksOutputBuffer_Finish(buffer, real_avail_out);
160 OutputBuffer_WindowOnError(_BlocksOutputBuffer *buffer, _Uint32Window *window)
162 _BlocksOutputBuffer_OnError(buffer);
186 /* Initial buffer size. */
314 The window buffer size and container format.
326 _BlocksOutputBuffer buffer = {.list = NULL};
333 if (OutputBuffer_InitAndGrow(&buffer, -1, &zst.next_out, &zst.avail_out) < 0) {
366 if (OutputBuffer_Grow(&buffer, &zst.next_out, &zst.avail_out) < 0) {
390 RetVal = OutputBuffer_Finish(&buffer, zst.avail_out);
399 OutputBuffer_OnError(&buffer);
410 The window buffer size and container format.
412 The initial output buffer size.
427 _BlocksOutputBuffer buffer = {.list = NULL};
428 _Uint32Window window; // output buffer's UINT32_MAX sliding window
439 if (OutputBuffer_WindowInitWithSize(&buffer, &window, bufsize,
473 if (OutputBuffer_WindowGrow(&buffer, &window,
517 RetVal = OutputBuffer_WindowFinish(&buffer, &window, zst.avail_out);
523 OutputBuffer_WindowOnError(&buffer, &window);
641 The window buffer size and container format.
657 "zdict argument must support the buffer protocol");
758 _BlocksOutputBuffer buffer = {.list = NULL};
766 if (OutputBuffer_InitAndGrow(&buffer, -1, &self->zst.next_out, &self->zst.avail_out) < 0) {
775 if (OutputBuffer_Grow(&buffer, &self->zst.next_out, &self->zst.avail_out) < 0) {
794 RetVal = OutputBuffer_Finish(&buffer, self->zst.avail_out);
800 OutputBuffer_OnError(&buffer);
879 _BlocksOutputBuffer buffer = {.list = NULL};
898 if (OutputBuffer_InitAndGrow(&buffer, max_length, &self->zst.next_out, &self->zst.avail_out) < 0) {
907 if (OutputBuffer_GetDataSize(&buffer, self->zst.avail_out) == max_length) {
910 if (OutputBuffer_Grow(&buffer, &self->zst.next_out, &self->zst.avail_out) < 0) {
948 /* We will only get Z_BUF_ERROR if the output buffer was full
956 RetVal = OutputBuffer_Finish(&buffer, self->zst.avail_out);
962 OutputBuffer_OnError(&buffer);
989 _BlocksOutputBuffer buffer = {.list = NULL};
1002 if (OutputBuffer_InitAndGrow(&buffer, -1, &self->zst.next_out, &self->zst.avail_out) < 0) {
1008 if (OutputBuffer_Grow(&buffer, &self->zst.next_out, &self->zst.avail_out) < 0) {
1036 /* We will only get Z_BUF_ERROR if the output buffer was full
1045 RetVal = OutputBuffer_Finish(&buffer, self->zst.avail_out);
1051 OutputBuffer_OnError(&buffer);
1242 the initial size of the output buffer.
1257 _BlocksOutputBuffer buffer = {.list = NULL};
1258 _Uint32Window window; // output buffer's UINT32_MAX sliding window
1282 if (OutputBuffer_WindowInitWithSize(&buffer, &window, length,
1293 if (OutputBuffer_WindowGrow(&buffer, &window,
1339 RetVal = OutputBuffer_WindowFinish(&buffer, &window, self->zst.avail_out);
1345 OutputBuffer_WindowOnError(&buffer, &window);
1511 "'wbits' is window buffer size and container format.\n"