pub fn get_bytes_in_archive_from_hash(
archive_path: &str,
hash: &str,
) -> Result<(Vec<u8>, Header), SigmfError>Expand description
Finds the .sigmf-meta member of the tar file at archive_path whose
SHA-512 digest equals hash, returning its contents and tar header.
hash is compared exactly against the lowercase hexadecimal digest
produced by hash_from_slice.
ยงErrors
Returns SigmfError::ResourceLimit if a metadata member examined before
a match exceeds the 1,000,000-byte metadata size limit,
SigmfError::NotFound if no member matches, or SigmfError::Io if the
archive cannot be opened or read.