Mercurial > hg > nginx-quic
diff src/core/ngx_hunk.h @ 147:be71fca7f9d7
nginx-0.0.1-2003-10-14-19:06:38 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 14 Oct 2003 15:06:38 +0000 |
parents | 58557d0cccd1 |
children | 5afee0074707 |
line wrap: on
line diff
--- 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);