Lines Matching refs:pkt
19 * Decodes a QUIC variable-length integer in |pkt| and stores the result in
22 __owur static ossl_inline int PACKET_get_quic_vlint(PACKET *pkt,
27 if (PACKET_remaining(pkt) < 1)
30 enclen = ossl_quic_vlint_decode_len(*pkt->curr);
32 if (PACKET_remaining(pkt) < enclen)
35 *data = ossl_quic_vlint_decode_unchecked(pkt->curr);
36 packet_forward(pkt, enclen);
41 * Decodes a QUIC variable-length integer in |pkt| and stores the result in
46 __owur static ossl_inline int PACKET_peek_quic_vlint_ex(PACKET *pkt,
52 if (PACKET_remaining(pkt) < 1)
55 enclen = ossl_quic_vlint_decode_len(*pkt->curr);
57 if (PACKET_remaining(pkt) < enclen)
60 *data = ossl_quic_vlint_decode_unchecked(pkt->curr);
68 __owur static ossl_inline int PACKET_peek_quic_vlint(PACKET *pkt,
71 return PACKET_peek_quic_vlint_ex(pkt, data, NULL);
75 * Skips over a QUIC variable-length integer in |pkt| without decoding it.
77 __owur static ossl_inline int PACKET_skip_quic_vlint(PACKET *pkt)
81 if (PACKET_remaining(pkt) < 1)
84 enclen = ossl_quic_vlint_decode_len(*pkt->curr);
86 if (PACKET_remaining(pkt) < enclen)
89 packet_forward(pkt, enclen);
95 * denoting the length, and stores the contents in |subpkt|. |pkt| can equal
97 * buffer with the original |pkt|, so data wrapped by |pkt| must outlive the
98 * |subpkt|. Upon failure, the original |pkt| and |subpkt| are not modified.
100 __owur static ossl_inline int PACKET_get_quic_length_prefixed(PACKET *pkt,
105 PACKET tmp = *pkt;
111 *pkt = tmp;
122 __owur int WPACKET_start_quic_sub_packet(WPACKET *pkt);
131 __owur int WPACKET_start_quic_sub_packet_bound(WPACKET *pkt, size_t max_len);
139 __owur int WPACKET_quic_sub_allocate_bytes(WPACKET *pkt, size_t len,
145 __owur int WPACKET_quic_write_vlint(WPACKET *pkt, uint64_t v);