diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ngx_hunk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index a5bdfcb38..a66d47610 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -85,6 +85,11 @@ typedef struct { (h->type == (h->type & (NGX_HUNK_FLUSH|NGX_HUNK_LAST))) +#define nxg_hunk_size(h) \ + (h->type & NGX_HUNK_IN_MEMORY) ? h->last - h->pos: \ + (size_t) h->file_last - h->file_pos + + ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size, int before, int after); |