pub struct QliePackArchiveWriterV31<T: Write + Seek> {
writer: T,
encryption: Encryption31,
qkey: QlieKey,
header: QlieHeader,
hash: QlieHash14,
has_key_file: bool,
entries: Vec<QlieEntry>,
key: u32,
common_key: Option<Vec<u8>>,
compress_files: bool,
}Available on crate features
qlie and qlie-arc only.Fields§
§writer: T§encryption: Encryption31§qkey: QlieKey§header: QlieHeader§hash: QlieHash14§has_key_file: bool§entries: Vec<QlieEntry>§key: u32§common_key: Option<Vec<u8>>§compress_files: boolImplementations§
Trait Implementations§
Source§impl<T: Write + Seek> Archive for QliePackArchiveWriterV31<T>
impl<T: Write + Seek> Archive for QliePackArchiveWriterV31<T>
Source§fn prelist<'a>(
&'a self,
) -> Result<Option<Box<dyn Iterator<Item = Result<String>> + 'a>>>
fn prelist<'a>( &'a self, ) -> Result<Option<Box<dyn Iterator<Item = Result<String>> + 'a>>>
Returns an iterator of a list of filenames must writed before other files. Read more
Source§fn new_file<'a>(
&'a mut self,
name: &str,
size: Option<u64>,
) -> Result<Box<dyn WriteSeek + 'a>>
fn new_file<'a>( &'a mut self, name: &str, size: Option<u64>, ) -> Result<Box<dyn WriteSeek + 'a>>
Creates a new file in the archive. Read more
Source§fn new_file_non_seek<'a>(
&'a mut self,
name: &str,
size: Option<u64>,
) -> Result<Box<dyn Write + 'a>>
fn new_file_non_seek<'a>( &'a mut self, name: &str, size: Option<u64>, ) -> Result<Box<dyn Write + 'a>>
Creates a new file in the archive that does not require seeking. Read more
Source§fn write_header(&mut self) -> Result<()>
fn write_header(&mut self) -> Result<()>
Writes the header of the archive. (Must be called after writing all files.)
Auto Trait Implementations§
impl<T> Freeze for QliePackArchiveWriterV31<T>where
T: Freeze,
impl<T> RefUnwindSafe for QliePackArchiveWriterV31<T>where
T: RefUnwindSafe,
impl<T> Send for QliePackArchiveWriterV31<T>where
T: Send,
impl<T> Sync for QliePackArchiveWriterV31<T>where
T: Sync,
impl<T> Unpin for QliePackArchiveWriterV31<T>where
T: Unpin,
impl<T> UnwindSafe for QliePackArchiveWriterV31<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more