pub struct XP3Writer<T: Write + Seek> { /* private fields */ }Implementations§
Source§impl<T: Write + Seek> XP3Writer<T>
impl<T: Write + Seek> XP3Writer<T>
Sourcepub fn start(
stream: T,
version: XP3HeaderVersion,
index_compression: XP3IndexCompression,
) -> Result<Self, XP3Error>
pub fn start( stream: T, version: XP3HeaderVersion, index_compression: XP3IndexCompression, ) -> Result<Self, XP3Error>
Start new XP3 file writing
pub fn append_extra_index(&mut self, index: XP3Index)
pub fn current_pos(&mut self) -> u64
Sourcepub fn enter_file(
&mut self,
protection: IndexInfoFlag,
name: String,
timestamp: Option<u64>,
) -> EntryWriter<'_, T> ⓘ
pub fn enter_file( &mut self, protection: IndexInfoFlag, name: String, timestamp: Option<u64>, ) -> EntryWriter<'_, T> ⓘ
Enter file entry start
Sourcepub fn finish(self) -> Result<(VirtualXP3, T), XP3Error>
pub fn finish(self) -> Result<(VirtualXP3, T), XP3Error>
Append indexes and finish file
Auto Trait Implementations§
impl<T> Freeze for XP3Writer<T>where
T: Freeze,
impl<T> RefUnwindSafe for XP3Writer<T>where
T: RefUnwindSafe,
impl<T> Send for XP3Writer<T>where
T: Send,
impl<T> Sync for XP3Writer<T>where
T: Sync,
impl<T> Unpin for XP3Writer<T>where
T: Unpin,
impl<T> UnwindSafe for XP3Writer<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