Lines Matching refs:PACKET

27 } PACKET;
30 static ossl_inline void packet_forward(PACKET *pkt, size_t len)
37 * Returns the number of bytes remaining to be read in the PACKET
39 static ossl_inline size_t PACKET_remaining(const PACKET *pkt)
46 * Useful for integrating with non-PACKET parsing code.
50 static ossl_inline const unsigned char *PACKET_end(const PACKET *pkt)
56 * Returns a pointer to the PACKET's current position.
59 static ossl_inline const unsigned char *PACKET_data(const PACKET *pkt)
65 * Initialise a PACKET with |len| bytes held in |buf|. This does not make a
66 * copy of the data so |buf| must be present for the whole time that the PACKET
69 __owur static ossl_inline int PACKET_buf_init(PACKET *pkt,
82 /* Initialize a PACKET to hold zero bytes. */
83 static ossl_inline void PACKET_null_init(PACKET *pkt)
94 __owur static ossl_inline int PACKET_equal(const PACKET *pkt, const void *ptr,
107 __owur static ossl_inline int PACKET_peek_sub_packet(const PACKET *pkt,
108 PACKET *subpkt, size_t len)
121 __owur static ossl_inline int PACKET_get_sub_packet(PACKET *pkt,
122 PACKET *subpkt, size_t len)
136 __owur static ossl_inline int PACKET_peek_net_2(const PACKET *pkt,
150 __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data)
161 __owur static ossl_inline int PACKET_get_net_2_len(PACKET *pkt, size_t *data)
176 __owur static ossl_inline int PACKET_peek_net_3(const PACKET *pkt,
191 __owur static ossl_inline int PACKET_get_net_3(PACKET *pkt, unsigned long *data)
202 __owur static ossl_inline int PACKET_get_net_3_len(PACKET *pkt, size_t *data)
217 __owur static ossl_inline int PACKET_peek_net_4(const PACKET *pkt,
235 __owur static ossl_inline int PACKET_peek_net_8(const PACKET *pkt,
255 __owur static ossl_inline int PACKET_get_net_4(PACKET *pkt, unsigned long *data)
266 __owur static ossl_inline int PACKET_get_net_4_len(PACKET *pkt, size_t *data)
278 __owur static ossl_inline int PACKET_get_net_8(PACKET *pkt, uint64_t *data)
289 __owur static ossl_inline int PACKET_peek_1(const PACKET *pkt,
301 __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data)
312 __owur static ossl_inline int PACKET_get_1_len(PACKET *pkt, size_t *data)
327 __owur static ossl_inline int PACKET_peek_4(const PACKET *pkt,
346 __owur static ossl_inline int PACKET_get_4(PACKET *pkt, unsigned long *data)
362 __owur static ossl_inline int PACKET_peek_bytes(const PACKET *pkt,
380 __owur static ossl_inline int PACKET_get_bytes(PACKET *pkt,
393 __owur static ossl_inline int PACKET_peek_copy_bytes(const PACKET *pkt,
409 __owur static ossl_inline int PACKET_copy_bytes(PACKET *pkt,
424 * Does not forward PACKET position (because it is typically the last thing
425 * done with a given PACKET).
427 __owur static ossl_inline int PACKET_copy_all(const PACKET *pkt,
446 * Does not forward PACKET position (because it is typically the last thing
447 * done with a given PACKET).
449 __owur static ossl_inline int PACKET_memdup(const PACKET *pkt,
478 * Does not forward PACKET position (because it is typically the last thing done
479 * with a given PACKET).
481 __owur static ossl_inline int PACKET_strndup(const PACKET *pkt, char **data)
491 static ossl_inline int PACKET_contains_zero_byte(const PACKET *pkt)
497 __owur static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)
514 __owur static ossl_inline int PACKET_get_length_prefixed_1(PACKET *pkt,
515 PACKET *subpkt)
519 PACKET tmp = *pkt;
536 __owur static ossl_inline int PACKET_as_length_prefixed_1(PACKET *pkt,
537 PACKET *subpkt)
541 PACKET tmp = *pkt;
562 __owur static ossl_inline int PACKET_get_length_prefixed_2(PACKET *pkt,
563 PACKET *subpkt)
567 PACKET tmp = *pkt;
585 __owur static ossl_inline int PACKET_as_length_prefixed_2(PACKET *pkt,
586 PACKET *subpkt)
590 PACKET tmp = *pkt;
612 __owur static ossl_inline int PACKET_get_length_prefixed_3(PACKET *pkt,
613 PACKET *subpkt)
617 PACKET tmp = *pkt;