Lines Matching refs:pkt
22 __owur static ossl_inline int PACKET_get_quic_vlint(PACKET *pkt, in PACKET_get_quic_vlint() argument
27 if (PACKET_remaining(pkt) < 1) in PACKET_get_quic_vlint()
30 enclen = ossl_quic_vlint_decode_len(*pkt->curr); in PACKET_get_quic_vlint()
32 if (PACKET_remaining(pkt) < enclen) in PACKET_get_quic_vlint()
35 *data = ossl_quic_vlint_decode_unchecked(pkt->curr); in PACKET_get_quic_vlint()
36 packet_forward(pkt, enclen); in PACKET_get_quic_vlint()
46 __owur static ossl_inline int PACKET_peek_quic_vlint_ex(PACKET *pkt, in PACKET_peek_quic_vlint_ex() argument
52 if (PACKET_remaining(pkt) < 1) in PACKET_peek_quic_vlint_ex()
55 enclen = ossl_quic_vlint_decode_len(*pkt->curr); in PACKET_peek_quic_vlint_ex()
57 if (PACKET_remaining(pkt) < enclen) in PACKET_peek_quic_vlint_ex()
60 *data = ossl_quic_vlint_decode_unchecked(pkt->curr); in PACKET_peek_quic_vlint_ex()
68 __owur static ossl_inline int PACKET_peek_quic_vlint(PACKET *pkt, in PACKET_peek_quic_vlint() argument
71 return PACKET_peek_quic_vlint_ex(pkt, data, NULL); in PACKET_peek_quic_vlint()
77 __owur static ossl_inline int PACKET_skip_quic_vlint(PACKET *pkt) in PACKET_skip_quic_vlint() argument
81 if (PACKET_remaining(pkt) < 1) in PACKET_skip_quic_vlint()
84 enclen = ossl_quic_vlint_decode_len(*pkt->curr); in PACKET_skip_quic_vlint()
86 if (PACKET_remaining(pkt) < enclen) in PACKET_skip_quic_vlint()
89 packet_forward(pkt, enclen); in PACKET_skip_quic_vlint()
100 __owur static ossl_inline int PACKET_get_quic_length_prefixed(PACKET *pkt, in PACKET_get_quic_length_prefixed() argument
105 PACKET tmp = *pkt; in PACKET_get_quic_length_prefixed()
113 *pkt = tmp; in PACKET_get_quic_length_prefixed()
124 __owur int WPACKET_start_quic_sub_packet(WPACKET *pkt);
133 __owur int WPACKET_start_quic_sub_packet_bound(WPACKET *pkt, size_t max_len);
141 __owur int WPACKET_quic_sub_allocate_bytes(WPACKET *pkt, size_t len,
147 __owur int WPACKET_quic_write_vlint(WPACKET *pkt, uint64_t v);