Lines Matching refs:buffer

192 			ctx->buffer.used = 0;  in php_zlib_output_handler_ex()
197 if (ctx->buffer.free < output_context->in.used) { in php_zlib_output_handler_ex()
198 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
202 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
203 ctx->buffer.free += output_context->in.used; in php_zlib_output_handler_ex()
205 memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used); in php_zlib_output_handler_ex()
206 ctx->buffer.free -= output_context->in.used; in php_zlib_output_handler_ex()
207 ctx->buffer.used += output_context->in.used; in php_zlib_output_handler_ex()
214 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
215 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
234 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
236 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
237 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
329 if (ctx->buffer.data) { in php_zlib_output_handler_context_dtor()
330 efree(ctx->buffer.data); in php_zlib_output_handler_context_dtor()
424 php_zlib_buffer buffer = {NULL, NULL, 0, 0, 0}; in php_zlib_inflate_rounds() local
429 buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in; in php_zlib_inflate_rounds()
432 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
435 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
436 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
437 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
439 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
443 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
444 buffer.free = Z->avail_out; in php_zlib_inflate_rounds()
446 …ed=%7lu,\tavail_in=%7lu,\tavail_out=%7lu\n", round, status, buffer.size, buffer.free, buffer.used,… in php_zlib_inflate_rounds()
448 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
453 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
454 buffer.data[buffer.used] = '\0'; in php_zlib_inflate_rounds()
455 *buf = buffer.data; in php_zlib_inflate_rounds()
456 *len = buffer.used; in php_zlib_inflate_rounds()
458 if (buffer.data) { in php_zlib_inflate_rounds()
459 efree(buffer.data); in php_zlib_inflate_rounds()