C# Класс Glare.Assets.MarkingStream

A wrapped stream that records what bytes are read, so it can report on what bytes are not read.
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Dispose of the data.

Описание методов

Dispose() защищенный Метод

Dispose of the data.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Flush() публичный Метод

Flush any changes to the stream.
public Flush ( ) : void
Результат void

GetUnreadBlocks() публичный Метод

Get all of the unread blocks in the stream.
public GetUnreadBlocks ( ) : List
Результат List

MarkingStream() публичный Метод

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 .
Результат System

Read() публичный Метод

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
Результат int

Report() публичный Метод

Report unread blocks to the loader as errors.
public Report ( AssetLoader loader ) : void
loader AssetLoader
Результат void

Seek() публичный Метод

Attempt to change the position of the stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

An invalid operation.
public SetLength ( long value ) : void
value long
Результат void

Write() публичный Метод

Write to the stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void