Lines Matching refs:buffer
124 ctx->buffer.used = 0; in php_zlib_output_handler_ex()
129 if (ctx->buffer.free < output_context->in.used) { in php_zlib_output_handler_ex()
130 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
134 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
135 ctx->buffer.free += output_context->in.used; in php_zlib_output_handler_ex()
137 memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used); in php_zlib_output_handler_ex()
138 ctx->buffer.free -= output_context->in.used; in php_zlib_output_handler_ex()
139 ctx->buffer.used += output_context->in.used; in php_zlib_output_handler_ex()
146 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
147 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
165 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
167 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
168 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
261 if (ctx->buffer.data) { in php_zlib_output_handler_context_dtor()
262 efree(ctx->buffer.data); in php_zlib_output_handler_context_dtor()
360 php_zlib_buffer buffer = {NULL, NULL, 0, 0, 0}; in php_zlib_inflate_rounds() local
365 buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in; in php_zlib_inflate_rounds()
368 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
371 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
372 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
373 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
375 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
379 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
380 buffer.free = Z->avail_out; in php_zlib_inflate_rounds()
382 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
384 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
389 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
390 buffer.data[buffer.used] = '\0'; in php_zlib_inflate_rounds()
391 *buf = buffer.data; in php_zlib_inflate_rounds()
392 *len = buffer.used; in php_zlib_inflate_rounds()
394 if (buffer.data) { in php_zlib_inflate_rounds()
395 efree(buffer.data); in php_zlib_inflate_rounds()