Lines Matching refs:subpkt

103  * Peek ahead and initialize |subpkt| with the next |len| bytes read from |pkt|.
104 * Data is not copied: the |subpkt| packet will share its underlying buffer with
105 * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
108 PACKET *subpkt, size_t len)
113 return PACKET_buf_init(subpkt, pkt->curr, len);
117 * Initialize |subpkt| with the next |len| bytes read from |pkt|. Data is not
118 * copied: the |subpkt| packet will share its underlying buffer with the
119 * original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
122 PACKET *subpkt, size_t len)
124 if (!PACKET_peek_sub_packet(pkt, subpkt, len))
509 * the contents in |subpkt|. |pkt| can equal |subpkt|.
510 * Data is not copied: the |subpkt| packet will share its underlying buffer with
511 * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
512 * Upon failure, the original |pkt| and |subpkt| are not modified.
515 PACKET *subpkt)
526 subpkt->curr = data;
527 subpkt->remaining = length;
537 PACKET *subpkt)
549 subpkt->curr = data;
550 subpkt->remaining = length;
557 * the contents in |subpkt|. |pkt| can equal |subpkt|.
558 * Data is not copied: the |subpkt| packet will share its underlying buffer with
559 * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
560 * Upon failure, the original |pkt| and |subpkt| are not modified.
563 PACKET *subpkt)
575 subpkt->curr = data;
576 subpkt->remaining = length;
586 PACKET *subpkt)
599 subpkt->curr = data;
600 subpkt->remaining = length;
607 * the contents in |subpkt|. |pkt| can equal |subpkt|.
608 * Data is not copied: the |subpkt| packet will share its underlying buffer with
609 * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
610 * Upon failure, the original |pkt| and |subpkt| are not modified.
613 PACKET *subpkt)
624 subpkt->curr = data;
625 subpkt->remaining = length;