Function pssh_box::from_buffer

source ยท
pub fn from_buffer(init_data: &[u8]) -> Result<PsshBoxVec>
Expand description

Read one or more PSSH boxes from a slice of octets, stopping (but not returning an error) when non-PSSH data is found in the slice. An error is returned if the parsing fails.