Skip to main content

get_bytes_in_archive_from_name_ext

Function get_bytes_in_archive_from_name_ext 

Source
pub fn get_bytes_in_archive_from_name_ext(
    archive_path: &str,
    name: &str,
    ext: &str,
) -> Result<(Vec<u8>, Header), SigmfError>
Expand description

Reads the archive member {name}.{ext} from the tar file at archive_path, returning its contents and tar header.

No size limit is applied to the member; the whole member is read into memory.

ยงErrors

Returns SigmfError::NotFound if no member matches, or SigmfError::Io if the archive cannot be opened or read.