C# Class NVorbis.BufferedReadStream

A thread-safe, read-only, buffering stream wrapper.
Inheritance: Stream
显示文件 Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method Description
BufferedReadStream ( Stream baseStream ) : System
BufferedReadStream ( Stream baseStream, bool minimalRead ) : System
BufferedReadStream ( Stream baseStream, int initialSize, int maxSize ) : System
BufferedReadStream ( Stream baseStream, int initialSize, int maxBufferSize, bool minimalRead ) : System
Discard ( int bytes ) : void
DiscardThrough ( long offset ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
ReleaseLock ( ) : void
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
TakeLock ( ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckLock ( ) : void

Method Details

BufferedReadStream() public method

public BufferedReadStream ( Stream baseStream ) : System
baseStream Stream
return System

BufferedReadStream() public method

public BufferedReadStream ( Stream baseStream, bool minimalRead ) : System
baseStream Stream
minimalRead bool
return System

BufferedReadStream() public method

public BufferedReadStream ( Stream baseStream, int initialSize, int maxSize ) : System
baseStream Stream
initialSize int
maxSize int
return System

BufferedReadStream() public method

public BufferedReadStream ( Stream baseStream, int initialSize, int maxBufferSize, bool minimalRead ) : System
baseStream Stream
initialSize int
maxBufferSize int
minimalRead bool
return System

Discard() public method

public Discard ( int bytes ) : void
bytes int
return void

DiscardThrough() public method

public DiscardThrough ( long offset ) : void
offset long
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

ReleaseLock() public method

public ReleaseLock ( ) : void
return void

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

TakeLock() public method

public TakeLock ( ) : void
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void