Lines Matching defs:acc

54   accumulator *acc;
186 accumulator *acc = ((my_user_data *)user_data)->acc;
190 assert(acc->length + len < sizeof(acc->buf));
191 memcpy(acc->buf + acc->length, buf, len);
192 acc->length += len;
427 accumulator *acc = ((my_user_data *)user_data)->acc;
431 memcpy(acc->buf + acc->length, framehd, NGHTTP2_FRAME_HDLEN);
432 acc->length += NGHTTP2_FRAME_HDLEN;
435 *(acc->buf + acc->length++) = (uint8_t)(frame->data.padlen - 1);
438 acc->length += length;
441 acc->length += frame->data.padlen - 1;
3170 accumulator acc;
3182 acc.length = 0;
3183 user_data.acc = &acc;
3205 CU_ASSERT(NGHTTP2_HEADERS == acc.buf[3]);
3206 CU_ASSERT((NGHTTP2_FLAG_END_HEADERS | NGHTTP2_FLAG_PRIORITY) == acc.buf[4]);
3208 CU_ASSERT(1 == nghttp2_get_uint32(&acc.buf[5]));
5426 accumulator acc;
5434 acc.length = 0;
5435 ud.acc = &acc;
5445 CU_ASSERT(NGHTTP2_FRAME_HDLEN * 2 + 16 * 2 == acc.length);
5490 accumulator acc;
5505 acc.length = 0;
5506 ud.acc = &acc;
5521 CU_ASSERT(0 == unpack_frame(&frame, acc.buf, acc.length));
5523 nghttp2_bufs_add(&bufs, acc.buf, acc.length);
5590 accumulator acc;
5604 acc.length = 0;
5605 ud.acc = &acc;
5621 CU_ASSERT(0 == unpack_frame(&frame, acc.buf, acc.length));
5623 nghttp2_bufs_add(&bufs, acc.buf, acc.length);
5665 accumulator acc;
5680 acc.length = 0;
5681 ud.acc = &acc;
5703 CU_ASSERT(0 == unpack_frame(&frame, acc.buf, acc.length));
5705 nghttp2_bufs_add(&bufs, acc.buf, acc.length);
5843 accumulator acc;
5855 acc.length = 0;
5856 ud.acc = &acc;
5889 CU_ASSERT(0 == unpack_frame(&frame, acc.buf, acc.length));
5891 nghttp2_bufs_add(&bufs, acc.buf, acc.length);
6633 accumulator acc;
6652 ud.acc = &acc;
6658 acc.length = 0;
6663 CU_ASSERT(NGHTTP2_FRAME_HDLEN + sizeof(data) == acc.length);
6665 len = nghttp2_get_uint32(acc.buf) >> 8;
6668 CU_ASSERT(211 == acc.buf[3]);
6669 CU_ASSERT(0x01 == acc.buf[4]);
6671 stream_id = (int32_t)nghttp2_get_uint32(acc.buf + 5);
6674 CU_ASSERT(0 == memcmp(data, &acc.buf[NGHTTP2_FRAME_HDLEN], sizeof(data)));
8194 accumulator acc;
8204 acc.length = 0;
8205 ud.acc = &acc;
8216 CU_ASSERT(acc.length < NGHTTP2_MAX_PAYLOADLEN);
8218 CU_ASSERT((ssize_t)acc.length ==
8219 nghttp2_session_mem_recv(sv_session, acc.buf, acc.length));
10437 accumulator acc;
10446 acc.length = 0;
10447 ud.acc = &acc;
10459 CU_ASSERT((NGHTTP2_FRAME_HDLEN + NGHTTP2_DATA_PAYLOADLEN) * 2 == acc.length);
10461 nghttp2_frame_unpack_frame_hd(&hd, acc.buf);
10467 nghttp2_frame_unpack_frame_hd(&hd, acc.buf + NGHTTP2_FRAME_HDLEN + hd.length);