Lines Matching refs:buffer

195 			ctx->buffer.used = 0;  in php_zlib_output_handler_ex()
200 if (ctx->buffer.free < output_context->in.used) { in php_zlib_output_handler_ex()
201 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
205 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
206 ctx->buffer.free += output_context->in.used; in php_zlib_output_handler_ex()
208 memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used); in php_zlib_output_handler_ex()
209 ctx->buffer.free -= output_context->in.used; in php_zlib_output_handler_ex()
210 ctx->buffer.used += output_context->in.used; in php_zlib_output_handler_ex()
217 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
218 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
236 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
238 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
239 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
331 if (ctx->buffer.data) { in php_zlib_output_handler_context_dtor()
332 efree(ctx->buffer.data); in php_zlib_output_handler_context_dtor()
426 php_zlib_buffer buffer = {NULL, NULL, 0, 0, 0}; in php_zlib_inflate_rounds() local
431 buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in; in php_zlib_inflate_rounds()
434 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
437 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
438 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
439 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
441 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
445 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
446 buffer.free = Z->avail_out; in php_zlib_inflate_rounds()
448 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
450 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
455 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
456 buffer.data[buffer.used] = '\0'; in php_zlib_inflate_rounds()
457 *buf = buffer.data; in php_zlib_inflate_rounds()
458 *len = buffer.used; in php_zlib_inflate_rounds()
460 if (buffer.data) { in php_zlib_inflate_rounds()
461 efree(buffer.data); in php_zlib_inflate_rounds()