pub struct ChunkOffsetAtom {
pub version: u8,
pub flags: [u8; 3],
pub chunk_offsets: ChunkOffsets,
pub is_64bit: bool,
}Expand description
Chunk Offset Atom - contains file offsets of chunks
Fields§
§version: u8Version of the stco atom format (0)
flags: [u8; 3]Flags for the stco atom (usually all zeros)
chunk_offsets: ChunkOffsetsList of chunk offsets
is_64bit: boolWhether this uses 64-bit offsets (co64) or 32-bit (stco)
Implementations§
Source§impl ChunkOffsetAtom
impl ChunkOffsetAtom
Sourcepub fn chunk_count(&self) -> usize
pub fn chunk_count(&self) -> usize
Returns the total number of chunks
pub fn builder() -> ChunkOffsetAtomBuilder
Trait Implementations§
Source§impl Clone for ChunkOffsetAtom
impl Clone for ChunkOffsetAtom
Source§fn clone(&self) -> ChunkOffsetAtom
fn clone(&self) -> ChunkOffsetAtom
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkOffsetAtom
impl Debug for ChunkOffsetAtom
Source§impl Default for ChunkOffsetAtom
impl Default for ChunkOffsetAtom
Source§fn default() -> ChunkOffsetAtom
fn default() -> ChunkOffsetAtom
Returns the “default value” for a type. Read more
Source§impl From<ChunkOffsetAtom> for AtomData
impl From<ChunkOffsetAtom> for AtomData
Source§fn from(atom: ChunkOffsetAtom) -> Self
fn from(atom: ChunkOffsetAtom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkOffsetAtom
impl RefUnwindSafe for ChunkOffsetAtom
impl Send for ChunkOffsetAtom
impl Sync for ChunkOffsetAtom
impl Unpin for ChunkOffsetAtom
impl UnsafeUnpin for ChunkOffsetAtom
impl UnwindSafe for ChunkOffsetAtom
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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