C# Class Glare.Assets.SliceStream

A System.IO.Stream wrapper that encapsulates part of the stream.
Inheritance: Stream
Show file Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Close the wrapped stream, if closeStream of the constructor was true.

Flush ( ) : void

Flush the wrapped stream.

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

Read from the wrapped stream.

Seek ( long offset, SeekOrigin origin ) : long

Seek within the wrapped stream.

SetLength ( long value ) : void

Throw a NotSupportedException.

SliceStream ( Stream stream, long start, long length, bool closeStream = true ) : System

Initialise the SliceStream.

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

Write to the wrapped stream.

Method Details

Close() public method

Close the wrapped stream, if closeStream of the constructor was true.
public Close ( ) : void
return void

Flush() public method

Flush the wrapped stream.
public Flush ( ) : void
return void

Read() public method

Read from the wrapped stream.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

Seek within the wrapped stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

Throw a NotSupportedException.
public SetLength ( long value ) : void
value long
return void

SliceStream() public method

Initialise the SliceStream.
public SliceStream ( Stream stream, long start, long length, bool closeStream = true ) : System
stream Stream
start long
length long
closeStream bool Whether to the when this is d.
return System

Write() public method

Write to the wrapped stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void