C# Class NVorbis.StreamReadBuffer

Datei anzeigen Open project: gregzo/G-Audio Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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.
return void

Dispose() public method

public Dispose ( ) : void
return void

Read() public method

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.
return int