C# Класс NVorbis.StreamReadBuffer

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CalcBuffer void
CommitDiscard void
CreateNewBuffer void
EnsureAvailable int
EnsureBufferSize void
FillBuffer int
PrepareStreamForRead int
ReadByte int
ReadStream void
SaveBuffer void
StreamReadBuffer System
SwapBuffers void

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

Метод Описание
DiscardThrough ( long offset ) : void

Tells the buffer that it no longer needs to maintain any bytes before the indicated offset.

Dispose ( ) : void
Read ( long offset, byte buffer, int index, int count ) : int

Reads the number of bytes specified into the buffer given, starting with the offset indicated.

Приватные методы

Метод Описание
CalcBuffer ( long offset, int count, int &readStart, int &readEnd ) : void
CommitDiscard ( ) : void
CreateNewBuffer ( long offset, int count ) : void
EnsureAvailable ( long offset, int &count, bool isRecursion ) : int
EnsureBufferSize ( int reqSize, bool copyContents, int copyOffset ) : void
FillBuffer ( long offset, int count, int readStart, int readEnd ) : int
PrepareStreamForRead ( int readCount, long readOffset ) : int
ReadByte ( long offset ) : int
ReadStream ( int readStart, int readCount, long readOffset ) : void
SaveBuffer ( ) : void
StreamReadBuffer ( Stream source, int initialSize, int maxSize, bool minimalRead ) : System
SwapBuffers ( SavedBuffer savedBuffer ) : void

Описание методов

DiscardThrough() публичный Метод

Tells the buffer that it no longer needs to maintain any bytes before the indicated offset.
public DiscardThrough ( long offset ) : void
offset long The offset to discard through.
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Read() публичный Метод

Reads the number of bytes specified into the buffer given, starting with the offset indicated.
public Read ( long offset, byte buffer, int index, int count ) : int
offset long The offset into the stream to start reading.
buffer byte The buffer to read to.
index int The index into the buffer to start writing to.
count int The number of bytes to read.
Результат int