Lines Matching refs:buffer

376 		ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used);  in php_output_get_contents()
389 ZVAL_LONG(p, OG(active)->buffer.used); in php_output_get_length()
712 if (handler->buffer.data) { in php_output_handler_dtor()
713 efree(handler->buffer.data); in php_output_handler_dtor()
873 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
874 handler->buffer.data = emalloc(handler->buffer.size); in php_output_handler_init()
887 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append()
889 …w_buf = PHP_OUTPUT_HANDLER_INITBUF_SIZE(buf->used - (handler->buffer.size - handler->buffer.used)); in php_output_handler_append()
892 handler->buffer.data = safe_erealloc(handler->buffer.data, 1, handler->buffer.size, grow_max); in php_output_handler_append()
893 handler->buffer.size += grow_max; in php_output_handler_append()
895 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append()
896 handler->buffer.used += buf->used; in php_output_handler_append()
899 if (handler->size && (handler->buffer.used >= handler->size)) { in php_output_handler_append()
929 handler->buffer.used?handler->buffer.data:"", in php_output_handler_op()
930 handler->buffer.used, in php_output_handler_op()
931 handler->buffer.size, in php_output_handler_op()
956 ZVAL_STRINGL(&ob_data, handler->buffer.data, handler->buffer.used); in php_output_handler_op()
984 …php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used,… in php_output_handler_op()
1009 context->out.data = handler->buffer.data; in php_output_handler_op()
1010 context->out.used = handler->buffer.used; in php_output_handler_op()
1012 handler->buffer.data = NULL; in php_output_handler_op()
1013 handler->buffer.used = 0; in php_output_handler_op()
1014 handler->buffer.size = 0; in php_output_handler_op()
1022 handler->buffer.used = 0; in php_output_handler_op()
1143 handler->buffer.used = 0; in php_output_stack_apply_clean()
1186 add_assoc_long(entry, "buffer_size", (zend_long) handler->buffer.size); in php_output_handler_status()
1187 add_assoc_long(entry, "buffer_used", (zend_long) handler->buffer.used); in php_output_handler_status()