C# Class NVorbis.StreamReadBuffer

Afficher le fichier Open project: gregzo/G-Audio Class Usage Examples

Private Properties

Свойство Type Description
CalcBuffer void
CommitDiscard void
CreateNewBuffer void
EnsureAvailable int
EnsureBufferSize void
FillBuffer int
PrepareStreamForRead int
ReadByte int
ReadStream void
SaveBuffer void
StreamReadBuffer System
SwapBuffers void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

DiscardThrough() public méthode

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.
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Read() public méthode

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.
Résultat int