C# Class Glare.Assets.SliceStream

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

Méthodes publiques

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

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

Flush() public méthode

Flush the wrapped stream.
public Flush ( ) : void
Résultat void

Read() public méthode

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

Seek() public méthode

Seek within the wrapped stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

Throw a NotSupportedException.
public SetLength ( long value ) : void
value long
Résultat void

SliceStream() public méthode

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

Write() public méthode

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