C# Класс NVorbis.Ogg.ContainerReader

Provides an IContainerReader implementation for basic Ogg files.
Наследование: IContainerReader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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