pub fn assert_coalesced_0rtt(payload: &[u8]) {
    assert!(payload.len() >= 1200);
    let mut dec = Decoder::from(payload);
    let initial_type = dec.decode_byte().unwrap(); // Initial
    let version = assert_default_version(&mut dec);
    assert_long_packet_type(initial_type, 0b1000_0000, version);
    dec.skip_vec(1); // DCID
    dec.skip_vec(1); // SCID
    dec.skip_vvec();
    let initial_len = dec.decode_varint().unwrap();
    dec.skip(initial_len.try_into().unwrap());
    let zrtt_type = dec.decode_byte().unwrap();
    assert_long_packet_type(zrtt_type, 0b1001_0000, version);
}
/// Do a simple decode of the datagram to verify that it is coalesced.
/// # Panics
/// If the tests fail.
Do a simple decode of the datagram to verify that it is coalesced.
Do a simple decode of the datagram to verify that it is coalesced .
pub fn assert_coalesced_0rtt(payload: &[u8]) {
    assert!(payload.len() >= 1200);
    let mut dec = Decoder::from(payload);
    let initial_type = dec.decode_byte().unwrap(); // Initial
    let version = assert_default_version(&mut dec);
    assert_long_packet_type(initial_type, 0b1000_0000, version);
    dec.skip_vec(1); // DCID
    dec.skip_vec(1); // SCID
    dec.skip_vvec();
    let initial_len = dec.decode_varint().unwrap();
    dec.skip(initial_len.try_into().unwrap());
    let zrtt_type = dec.decode_byte().unwrap();
    assert_long_packet_type(zrtt_type, 0b1001_0000, version);
}
pub fn assert_coalesced_0rtt ( payload : & [ u8 ] ) { assert ! ( payload len ( ) 1200 ) ; let mut dec = Decoder :: from ( payload ) ; let initial_type = dec . decode_byte ( ) . unwrap ( ) ; // Initial let version = assert_default_version ( & mut dec ) ; assert_long_packet_type ( initial_type , 0b1000_0000 , version ) ; dec . skip_vec ( 1 ) ; // DCID dec . skip_vec ( 1 ) ; // SCID dec . skip_vvec ( ) ; let initial_len = dec . decode_varint ( ) . unwrap ( ) ; dec . skip ( initial_len . try_into ( ) . unwrap ( ) ) ; let zrtt_type = dec . decode_byte ( ) . unwrap ( ) ; assert_long_packet_type ( zrtt_type , 0b1001_0000 , version ) ; }
Do a simple decode of the datagram to verify that it is coalesced.
Do a simple decode of the datagram to verify that it is coalesced .
payload
&[u8]
panics
If the tests fail.
If the tests fail .