pub struct ManifestEntry {
pub file_length1: u32,
pub file_length2: u32,
pub file_offset: u32,
pub file_name_length: u32,
pub file_name: String,
/* private fields */
}Expand description
A manifest entry containing the first file length, second file length, file offset, file name length, and file name.
Fields§
§file_length1: u32The file length is stored twice. Perhaps this is because some variant of FAR files supports compressed data and the fields would hold the compressed and uncompressed sizes, but this is pure speculation. The safest thing to do is to leave the fields identical.
file_length2: u32The file length is stored twice. Perhaps this is because some variant of FAR files supports compressed data and the fields would hold the compressed and uncompressed sizes, but this is pure speculation. The safest thing to do is to leave the fields identical.
file_offset: u32The file offset is the byte offset from the beginning of the FAR file to the archived file.
file_name_length: u32The filename length is the number of bytes in the filename. Filenames are stored without a terminating null. For example, the filename “foo” would have a filename length of three and the entry would be nineteen bytes long in total.
file_name: StringThe name of the file. This can include directories.
Implementations§
Trait Implementations§
Source§impl Clone for ManifestEntry
impl Clone for ManifestEntry
Source§fn clone(&self) -> ManifestEntry
fn clone(&self) -> ManifestEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more