pub struct TdfMultiEntryBuilder { /* private fields */ }Expand description
Writes a TDF whose payload is many Stored members rather than one
concatenated 0.payload, with the manifest written last.
TdfArchiveBuilder writes the manifest first, which cannot express a
layout whose manifest carries a root signature over every segment tag.
Implementations§
Source§impl TdfMultiEntryBuilder
impl TdfMultiEntryBuilder
Sourcepub fn add_member(&mut self, name: &str, bytes: &[u8]) -> Result<(), TdfError>
pub fn add_member(&mut self, name: &str, bytes: &[u8]) -> Result<(), TdfError>
Adds one Stored member. name is used verbatim as the zip entry name,
including any /, which this layout uses as part of a member name and
not as a directory separator.
Sourcepub fn finish_with_manifest(
self,
name: &str,
manifest: &TdfManifest,
) -> Result<u64, TdfError>
pub fn finish_with_manifest( self, name: &str, manifest: &TdfManifest, ) -> Result<u64, TdfError>
Writes the manifest as the final member and finalizes the archive. Returns the archive size in bytes.
Auto Trait Implementations§
impl !UnwindSafe for TdfMultiEntryBuilder
impl Forget for TdfMultiEntryBuilder
impl Freeze for TdfMultiEntryBuilder
impl RefUnwindSafe for TdfMultiEntryBuilder
impl Send for TdfMultiEntryBuilder
impl Sync for TdfMultiEntryBuilder
impl Unpin for TdfMultiEntryBuilder
impl UnsafeUnpin for TdfMultiEntryBuilder
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