[][src]Function lewton::header::read_header_ident

pub fn read_header_ident(packet: &[u8]) -> Result<IdentHeader, HeaderReadError>

Reading the Identification header

If it returns Err(sth) when being called with the first packet in a stream, the whole stream is to be considered undecodable as per the Vorbis spec. The function returns Err(HeaderReadError::HeaderBadType) if the header type doesn't match the ident header.