Struct me3_game_support_fromsoft::sprj::formats::DcxBuilder
source · [−]pub struct DcxBuilder { /* private fields */ }
Expand description
A builder structure to create a new DcxWriter.
This structure controls header configuration options such as the format version and compression parameters.
Implementations
sourceimpl DcxBuilder
impl DcxBuilder
pub fn new(version: u32) -> Self
sourcepub fn write<W: Write + Seek>(
self,
writer: W,
compression_params: CompressionParameters
) -> Result<DcxWriter<W>>
pub fn write<W: Write + Seek>(
self,
writer: W,
compression_params: CompressionParameters
) -> Result<DcxWriter<W>>
Consume this builder by writing the header out to [writer] and creating a DcxWriter.
Data written to the returned writer will be compressed and then written to the supplied [writer].
Auto Trait Implementations
impl RefUnwindSafe for DcxBuilder
impl Send for DcxBuilder
impl Sync for DcxBuilder
impl Unpin for DcxBuilder
impl UnwindSafe for DcxBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more