Struct x264_framing::Data
[−]
[src]
pub struct Data<'a> { /* fields omitted */ }
The result of encoding. Exciting stuff, isn't it?
Methods
impl<'a> Data<'a>
[src]
unsafe fn from_raw_parts(ptr: *mut x264_nal_t, len: usize) -> Self
Nothing to see here.
fn len(&self) -> usize
The number of units in this data sequence.
fn unit(&self, i: usize) -> Unit<'a>
The i
th unit.
Panics
Panics if i
is out-of-bounds. In order to be not-out-of-bounds, also
known as in-bounds, i
must be less than len
.
fn entirety(&self) -> &[u8]
The entire chunk of data, as one big byte-slice.
It has none of the elegance of processing each unit separately, but hey, it works. More importantly, it's a lot simpler, and if you're not using any of the fancy priority stuff, it won't even make a difference.