nxt_buf.c (1269:41331471eee7) nxt_buf.c (1271:d9c8ee25590a)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 169 unchanged lines hidden (view full) ---

178size_t
179nxt_buf_chain_length(nxt_buf_t *b)
180{
181 size_t length;
182
183 length = 0;
184
185 while (b != NULL) {
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 169 unchanged lines hidden (view full) ---

178size_t
179nxt_buf_chain_length(nxt_buf_t *b)
180{
181 size_t length;
182
183 length = 0;
184
185 while (b != NULL) {
186 length += b->mem.free - b->mem.pos;
186 if (!nxt_buf_is_sync(b)) {
187 length += b->mem.free - b->mem.pos;
188 }
189
187 b = b->next;
188 }
189
190 return length;
191}
192
193
194static void

--- 134 unchanged lines hidden ---
190 b = b->next;
191 }
192
193 return length;
194}
195
196
197static void

--- 134 unchanged lines hidden ---