Lines Matching refs:buf
28 char buf[24]; /* 64-bit (8 bytes) is 16 hex chars (+2 \r\n, +1 \0 = 19) */ in http_chunk_len_append() local
30 buffer b = { buf, 0, sizeof(buf) }; in http_chunk_len_append()
35 int i = (int)(sizeof(buf)); in http_chunk_len_append()
36 buf[--i] = '\n'; in http_chunk_len_append()
37 buf[--i] = '\r'; in http_chunk_len_append()
38 do { buf[--i] = "0123456789abcdef"[len & 0x0F]; } while (len >>= 4); in http_chunk_len_append()
39 chunkqueue_append_mem(cq, buf+i, sizeof(buf)-i); in http_chunk_len_append()
45 char buf[24]; /* 64-bit (8 bytes) is 16 hex chars (+2 \r\n, +1 \0 = 19) */ in http_chunk_len_append_tempfile() local
47 buffer b = { buf, 0, sizeof(buf) }; in http_chunk_len_append_tempfile()
52 int i = (int)(sizeof(buf)); in http_chunk_len_append_tempfile()
53 buf[--i] = '\n'; in http_chunk_len_append_tempfile()
54 buf[--i] = '\r'; in http_chunk_len_append_tempfile()
55 do { buf[--i] = "0123456789abcdef"[len & 0x0F]; } while (len >>= 4); in http_chunk_len_append_tempfile()
56 return chunkqueue_append_mem_to_tempfile(cq, buf+i, sizeof(buf)-i, errh); in http_chunk_len_append_tempfile()