C# 클래스 Glare.Assets.MarkingStream

A wrapped stream that records what bytes are read, so it can report on what bytes are not read.
상속: Stream
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 메소드들

메소드 설명
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