mpeg2ts 0.6.0

MPEG2-TS decoding/encoding library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Result;
use crate::ts::payload::Bytes;
use std::io::Read;

/// Payload for null packets.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Null;
impl Null {
    pub(super) fn read_from<R: Read>(reader: R) -> Result<Self> {
        let _ = Bytes::read_from(reader)?;
        Ok(Null)
    }
}