Skip to main content

datagram_payload_start

Function datagram_payload_start 

Source
fn datagram_payload_start(
    header: &AnyDatagramHeader,
    len: usize,
    consumed: usize,
) -> usize
Expand description

Where a decoded datagram’s payload starts.

consumed is what the decode read. Draft-14’s decode reads the payload into the header as well, so there the start is measured back from the payload.