Lines Matching refs:buffer
18 // Blocks output buffer wrappers
28 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length,
34 buffer, max_length, (void**) next_out);
42 OutputBuffer_Grow(_BlocksOutputBuffer *buffer,
48 buffer, (void**) next_out, (Py_ssize_t) *avail_out);
54 OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, size_t avail_out)
56 return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out);
60 OutputBuffer_Finish(_BlocksOutputBuffer *buffer, size_t avail_out)
62 return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out);
66 OutputBuffer_OnError(_BlocksOutputBuffer *buffer)
68 _BlocksOutputBuffer_OnError(buffer);
157 PyErr_SetString(state->error, "Insufficient buffer space");
550 _BlocksOutputBuffer buffer = {.list = NULL};
554 if (OutputBuffer_InitAndGrow(&buffer, -1, &c->lzs.next_out, &c->lzs.avail_out) < 0) {
577 if (OutputBuffer_Grow(&buffer, &c->lzs.next_out, &c->lzs.avail_out) < 0) {
583 result = OutputBuffer_Finish(&buffer, c->lzs.avail_out);
589 OutputBuffer_OnError(&buffer);
926 buffer is allocated dynamically and returned. At most max_length bytes are
934 _BlocksOutputBuffer buffer = {.list = NULL};
938 if (OutputBuffer_InitAndGrow(&buffer, max_length, &lzs->next_out, &lzs->avail_out) < 0) {
964 can be output, grow the output buffer and continue
966 if (OutputBuffer_GetDataSize(&buffer, lzs->avail_out) == max_length) {
969 if (OutputBuffer_Grow(&buffer, &lzs->next_out, &lzs->avail_out) < 0) {
977 result = OutputBuffer_Finish(&buffer, lzs->avail_out);
983 OutputBuffer_OnError(&buffer);
998 /* Number of bytes we can append to input buffer */
1003 contents to beginning of buffer (overwriting
1013 lose address of allocated buffer if realloc fails */
1067 /* Input buffer exhausted, output buffer has space. */
1074 /* If we did not use the input buffer, we now have
1075 to copy the tail from the caller's buffer into the
1076 input buffer */
1079 /* Discard buffer if it's too small