pub fn read_headers<'a, T: Read + 'a>(rdr: &mut PacketReader<T>) ->
		Result<(HeaderSet, u32), VorbisError> {
	let ident_packet = try!(rdr.read_packet_expected());
	let (headers, stream_serial, _stream_ends) =
		try!(read_headers_with_ident_packet(rdr, ident_packet));
	Ok((headers, stream_serial))
}
/// Reads the three vorbis headers from an ogg stream as well as stream serial information
///
/// Please note that this function doesn't work well with async
/// I/O. In order to support this use case, enable the `async_ogg` feature,
/// and use the `HeadersReader` struct instead.
Reads the three vorbis headers from an ogg stream as well as stream serial information
Please note that this function doesn't work well with async
I/O. In order to support this use case, enable the `async_ogg` feature,
and use the `HeadersReader` struct instead.
Reads the three vorbis headers from an ogg stream as well as stream serial information Please note that this function doesn ' t work well with async I / O . In order to support this use case enable the ` async_ogg ` feature and use the ` HeadersReader ` struct instead .
pub fn read_headers<'a, T: Read + 'a>(rdr: &mut PacketReader<T>) ->
		Result<(HeaderSet, u32), VorbisError> {
	let ident_packet = try!(rdr.read_packet_expected());
	let (headers, stream_serial, _stream_ends) =
		try!(read_headers_with_ident_packet(rdr, ident_packet));
	Ok((headers, stream_serial))
}
pub fn read_headers < ' a , T : Read + ' a > ( rdr : & mut PacketReader < T > ) -> Result < ( HeaderSet , u32 ) , VorbisError > { let ident_packet = try ! ( rdr read_packet_expected ( ) ) ; let ( headers , stream_serial , _stream_ends ) = try ! ( read_headers_with_ident_packet ( rdr ident_packet ) ) ; Ok ( ( headers , stream_serial ) ) }
Reads the three vorbis headers from an ogg stream as well as stream serial information
Please note that this function doesn't work well with async
I/O.
Reads the three vorbis headers from an ogg stream as well as stream serial information Please note that this function doesn ' t work well with async I / O .
rdr
&mut PacketReader<T>
rdr
&mut PacketReader<T>