Skip to main content

parse

Function parse 

Source
pub fn parse(envelope: &[u8]) -> Result<FileMetadata, FileError>
Expand description

Parses a decrypted metadata envelope. Any structural mismatch (bad lengths, unknown flags, trailing bytes, invalid UTF-8 filename) is FileError::InvalidMetadata.