Skip to main content

serialize

Function serialize 

Source
pub fn serialize(metadata: &FileMetadata) -> Result<SecureBytes, HeaderError>
Expand description

Serializes a metadata envelope. Fails with HeaderError::MetadataTooLong when the filename pushes the envelope past what the header can hold.