C# 클래스 NVorbis.Ogg.ContainerReader

Provides an IContainerReader implementation for basic Ogg files.
상속: IContainerReader
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

공개 메소드들

메소드 설명
ContainerReader ( Stream stream, bool closeOnDispose ) : System

Creates a new instance with the specified stream. Optionally sets to close the stream when disposed.

ContainerReader ( string path ) : System

Creates a new instance with the specified file.

Dispose ( ) : void

Disposes this instance.

FindNextStream ( ) : bool

Finds the next new stream in the container.

GetStream ( int streamSerial ) : IPacketProvider

Gets the IPacketProvider instance for the specified stream serial.

GetTotalPageCount ( ) : int

Retrieves the total number of pages in the container.

Init ( ) : bool

Initializes the container and finds the first stream.

비공개 메소드들

메소드 설명
AddPage ( PageHeader hdr ) : bool
DisposePacketReader ( PacketReader packetReader ) : void
FindNextPageHeader ( ) : PageHeader
GatherNextPage ( ) : int
GatherNextPage ( int streamSerial ) : void
PacketDiscardThrough ( long offset ) : void
PacketReadByte ( long offset ) : int
ReadPageHeader ( long position ) : PageHeader

메소드 상세

ContainerReader() 공개 메소드

Creates a new instance with the specified stream. Optionally sets to close the stream when disposed.
public ContainerReader ( Stream stream, bool closeOnDispose ) : System
stream Stream The stream to read.
closeOnDispose bool True to close the stream when is called, otherwise False.
리턴 System

ContainerReader() 공개 메소드

Creates a new instance with the specified file.
public ContainerReader ( string path ) : System
path string The full path to the file.
리턴 System

Dispose() 공개 메소드

Disposes this instance.
public Dispose ( ) : void
리턴 void

FindNextStream() 공개 메소드

Finds the next new stream in the container.
is False.
public FindNextStream ( ) : bool
리턴 bool

GetStream() 공개 메소드

Gets the IPacketProvider instance for the specified stream serial.
The specified stream serial was not found.
public GetStream ( int streamSerial ) : IPacketProvider
streamSerial int The stream serial to look for.
리턴 IPacketProvider

GetTotalPageCount() 공개 메소드

Retrieves the total number of pages in the container.
is False.
public GetTotalPageCount ( ) : int
리턴 int

Init() 공개 메소드

Initializes the container and finds the first stream.
public Init ( ) : bool
리턴 bool