Lines Matching refs:buffer
191 ctx->buffer.used = 0; in php_zlib_output_handler_ex()
196 if (ctx->buffer.free < output_context->in.used) { in php_zlib_output_handler_ex()
197 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
201 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
202 ctx->buffer.free += output_context->in.used; in php_zlib_output_handler_ex()
204 memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used); in php_zlib_output_handler_ex()
205 ctx->buffer.free -= output_context->in.used; in php_zlib_output_handler_ex()
206 ctx->buffer.used += output_context->in.used; in php_zlib_output_handler_ex()
213 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
214 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
233 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
235 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
236 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
328 if (ctx->buffer.data) { in php_zlib_output_handler_context_dtor()
329 efree(ctx->buffer.data); in php_zlib_output_handler_context_dtor()
423 php_zlib_buffer buffer = {NULL, NULL, 0, 0, 0}; in php_zlib_inflate_rounds() local
428 buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in; in php_zlib_inflate_rounds()
431 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
434 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
435 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
436 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
438 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
442 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
443 buffer.free = Z->avail_out; in php_zlib_inflate_rounds()
445 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
447 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
452 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
453 buffer.data[buffer.used] = '\0'; in php_zlib_inflate_rounds()
454 *buf = buffer.data; in php_zlib_inflate_rounds()
455 *len = buffer.used; in php_zlib_inflate_rounds()
457 if (buffer.data) { in php_zlib_inflate_rounds()
458 efree(buffer.data); in php_zlib_inflate_rounds()