pub struct RandomIndexPack {
pub partitions: Vec<PartitionLocation>,
}Expand description
The Random Index Pack — SMPTE ST 377-1:2019 §12: one
PartitionLocation per Partition in the file (including Header and
Footer), ascending byte_offset order, plus a trailing overall-length
field (§12.2 Note 2) that lets a decoder seek from EOF directly to this
Pack’s own Key without a forward scan.
Fields§
§partitions: Vec<PartitionLocation>One entry per Partition in the file, ascending byte_offset order.
Implementations§
Source§impl RandomIndexPack
impl RandomIndexPack
Sourcepub fn is_rip_key(key: &[u8; 16]) -> bool
pub fn is_rip_key(key: &[u8; 16]) -> bool
True if key is the Random Index Pack Key (Table 29), ignoring
byte 8 (registry version, wildcard).
Sourcepub fn parse_prefix(bytes: &[u8]) -> Result<(Self, usize)>
pub fn parse_prefix(bytes: &[u8]) -> Result<(Self, usize)>
Parse a Random Index Pack (Key + Length + Value, including the
trailing overall-length field) from bytes.
Trait Implementations§
Source§impl Clone for RandomIndexPack
impl Clone for RandomIndexPack
Source§fn clone(&self) -> RandomIndexPack
fn clone(&self) -> RandomIndexPack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RandomIndexPack
impl Debug for RandomIndexPack
Source§impl Default for RandomIndexPack
impl Default for RandomIndexPack
Source§fn default() -> RandomIndexPack
fn default() -> RandomIndexPack
Returns the “default value” for a type. Read more
impl Eq for RandomIndexPack
Source§impl<'a> Parse<'a> for RandomIndexPack
impl<'a> Parse<'a> for RandomIndexPack
Source§impl PartialEq for RandomIndexPack
impl PartialEq for RandomIndexPack
Source§impl Serialize for RandomIndexPack
impl Serialize for RandomIndexPack
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for RandomIndexPack
Auto Trait Implementations§
impl Freeze for RandomIndexPack
impl RefUnwindSafe for RandomIndexPack
impl Send for RandomIndexPack
impl Sync for RandomIndexPack
impl Unpin for RandomIndexPack
impl UnsafeUnpin for RandomIndexPack
impl UnwindSafe for RandomIndexPack
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