C# Class Glare.Assets.MarkingStream

A wrapped stream that records what bytes are read, so it can report on what bytes are not read.
Inheritance: Stream
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

Méthode Description
Flush ( ) : void

Flush any changes to the stream.

GetUnreadBlocks ( ) : List

Get all of the unread blocks in the stream.

MarkingStream ( Stream source, bool leaveOpen = false ) : System

Create the marking stream.

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

Read data from the stream, marking whatever is read as having been so.

Report ( AssetLoader loader ) : void

Report unread blocks to the loader as errors.

Seek ( long offset, SeekOrigin origin ) : long

Attempt to change the position of the stream.

SetLength ( long value ) : void

An invalid operation.

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

Write to the stream.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Dispose of the data.

Method Details

Dispose() protected méthode

Dispose of the data.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

Flush any changes to the stream.
public Flush ( ) : void
Résultat void

GetUnreadBlocks() public méthode

Get all of the unread blocks in the stream.
public GetUnreadBlocks ( ) : List
Résultat List

MarkingStream() public méthode

Create the marking stream.
public MarkingStream ( Stream source, bool leaveOpen = false ) : System
source Stream The stream to wrap.
leaveOpen bool Whether to leave the stream open on .
Résultat System

Read() public méthode

Read data from the stream, marking whatever is read as having been so.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Report() public méthode

Report unread blocks to the loader as errors.
public Report ( AssetLoader loader ) : void
loader AssetLoader
Résultat void

Seek() public méthode

Attempt to change the position of the stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

An invalid operation.
public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

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