pub struct PriorGaps {
pub group: Vec<u64>,
}Expand description
The Prior Group ID Gap values one Object carries.
draft-12 Section 10.1: “A track with a Group that contains more than one
Object with different values for Prior Group ID Gap or has a Prior Group ID
Gap larger than the Group ID is considered malformed.” Malformed Tracks are
draft-12 Section 2.5. This draft does not limit an Object to one instance,
so every value is kept. The least is held to the Group ID, for the reason
SubgroupGaps gives.
Fields§
§group: Vec<u64>Each Prior Group ID Gap, in wire order.
Implementations§
Source§impl PriorGaps
impl PriorGaps
Sourcepub fn from_properties(
properties: &[ObjectProperty<'_>],
group_id: u64,
) -> Result<Self, CodecError>
pub fn from_properties( properties: &[ObjectProperty<'_>], group_id: u64, ) -> Result<Self, CodecError>
Read the gaps from an Object’s parsed extension headers, refusing them
with CodecError::MalformedTrack when every one is larger than
group_id.
Sourcepub fn from_extensions(
extensions: &[u8],
group_id: u64,
) -> Result<Self, CodecError>
pub fn from_extensions( extensions: &[u8], group_id: u64, ) -> Result<Self, CodecError>
Self::from_properties on an extension block, refusing a block that
does not parse as crate::object_properties::parse_object_properties
does.