Struct x264::Data [−][src]
pub struct Data<'a> { /* fields omitted */ }
The encoded data, to be used in chunks or in its entirety.
Methods
impl<'a> Data<'a>
[src]
impl<'a> Data<'a>
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
The length (in NAL units, not in bytes) of this data sequence.
pub fn unit(&self, i: usize) -> Unit<'a>
[src]
pub fn unit(&self, i: usize) -> Unit<'a>
The i
th unit.
Panics
Panics if i
is out-of-bounds. In order to be within the bounds,
i
must be less than len
.
pub fn entirety(&self) -> &[u8]
[src]
pub fn entirety(&self) -> &[u8]
The entire chunk of data, as one big byte-slice.