X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_buffer.h;h=012c8cffb15cbd4968e8fe93cffd068076e278fe;hp=2052fe8a3711583560a96ae9164b1476c20adffc;hb=1090760c65b564b30c0e30598cd19a1238e683f6;hpb=32580f1d50d0481c9069b65ef30d0acd59ada3bb diff --git a/php_http_buffer.h b/php_http_buffer.h index 2052fe8..012c8cf 100644 --- a/php_http_buffer.h +++ b/php_http_buffer.h @@ -151,6 +151,8 @@ PHP_HTTP_BUFFER_API php_http_buffer_t *php_http_buffer_from_string_ex(php_http_b #define php_http_buffer_resize(b, s) php_http_buffer_resize_ex((b), (s), 0, 0) PHP_HTTP_BUFFER_API size_t php_http_buffer_resize_ex(php_http_buffer_t *buf, size_t len, size_t override_size, int allow_error); +PHP_HTTP_BUFFER_API char *php_http_buffer_account(php_http_buffer_t *buf, size_t to_account); + /* shrink memory chunk to actually used size (+1) */ PHP_HTTP_BUFFER_API size_t php_http_buffer_shrink(php_http_buffer_t *buf);