/// Called at the end of [`deserialize_envelope`] to make sure that there are no trailing bytes
/// after the outermost variable length container which are called "outer".
Called at the end of [`deserialize_envelope`] to make sure that there are no trailing bytes
after the outermost variable length container which are called "outer".
Called at the end of [ ` deserialize_envelope ` ] to make sure that there are no trailing bytes after the outermost variable length container which are called " outer " .
fn ensure_no_outer_trailing_bytes(reader: &[u8]) -> Result<(), TrailingBytesError> {
    if reader.is_empty() || !cfg!(feature = "strict") {
        Ok(())
    } else {
        Err(TrailingBytesError::Outer)
    }
}
fn ensure_no_outer_trailing_bytes ( reader : & [ u8 ] ) -> Result < ( ) , TrailingBytesError > { if reader . is_empty ( ) || ! cfg ! ( feature " " ) { Ok ( ( ) ) } else { Err ( TrailingBytesError :: Outer ) } }
Called at the end of [`deserialize_envelope`] to make sure that there are no trailing bytes
after the outermost variable length container which are called "outer".
Called at the end of [ ` deserialize_envelope ` ] to make sure that there are no trailing bytes after the outermost variable length container which are called " outer " .
reader
&[u8]