C# 클래스 Glare.Assets.AssetLoader

A loader for an Asset.
상속: NotifyingObject
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ProgressProperty PropertyInfo

공개 메소드들

메소드 설명
AddError ( long offset, string message ) : void

Add a generic load error.

AssetLoader ( AssetManager assetManager, BinaryReader reader, string name, FileManager fileManager, Asset contextResource = null, long length = null ) : Glare.Framework

Initialise the Asset loader.

Expect ( byte expected ) : bool

Expect a UInt16 value; if found, return true; otherwise report an error and return false

Expect ( int expected ) : bool

Expect a Int32 value; if found, return true; otherwise report an error and return false

Expect ( long expected ) : bool

Expect a Int64 value; if found, return true; otherwise report an error and return false

Expect ( sbyte expected ) : bool

Expect a SByte value; if found, return true; otherwise report an error and return false

Expect ( short expected ) : bool

Expect a Int16 value; if found, return true; otherwise report an error and return false

Expect ( uint expected ) : bool

Expect a UInt32 value; if found, return true; otherwise report an error and return false

Expect ( ulong expected ) : bool

Expect a UInt64 value; if found, return true; otherwise report an error and return false

Expect ( ushort expected ) : bool

Expect a Byte value; if found, return true; otherwise report an error and return false

ExpectMagic ( string expected ) : bool

Expect a magic sequence of bytes. If found, return true; otherwise report an error and return false.

ExpectPosition ( long expected ) : bool

Expect the input to be at a given position; if not so, report an error.

ExpectZeroes ( int size, int count ) : bool

Expect a sequence of zeroes, reporting errors if they are not found.

MakeBigEndian ( ) : BinaryReader

Switch the Reader for a BigEndianBinaryReader.

ReadCheckedAbsoluteBox3f ( ) : Box3f

Read a Box3f that is conveyed using absolute coordinates, with a triplet of min values and a triplet of max values. This checks that the min values are less than or equal to the max values, reporting errors if not.

Reset ( ) : void

Reset the stream position to the original position when the asset loader was created.

SetProgressToPosition ( ) : void

Set Progress to the current reader Position, based on the Start offset and the Length.

StartMarking ( ) : MarkingStream

Switch to the use of a MarkingStream.

StartMarking ( BinaryReader &reader ) : MarkingStream

Switch to the use of a MarkingStream.

비공개 메소드들

메소드 설명
ExpectCore ( long expected, long received ) : bool
ValueToString ( long value ) : string

메소드 상세

AddError() 공개 메소드

Add a generic load error.
public AddError ( long offset, string message ) : void
offset long
message string
리턴 void

AssetLoader() 공개 메소드

Initialise the Asset loader.
public AssetLoader ( AssetManager assetManager, BinaryReader reader, string name, FileManager fileManager, Asset contextResource = null, long length = null ) : Glare.Framework
assetManager AssetManager
reader System.IO.BinaryReader
name string
fileManager FileManager The to use to load any attached files. If this is null (the default), then the system file manager () is used.
contextResource Asset
length long
리턴 Glare.Framework

Expect() 공개 메소드

Expect a UInt16 value; if found, return true; otherwise report an error and return false
public Expect ( byte expected ) : bool
expected byte
리턴 bool

Expect() 공개 메소드

Expect a Int32 value; if found, return true; otherwise report an error and return false
public Expect ( int expected ) : bool
expected int
리턴 bool

Expect() 공개 메소드

Expect a Int64 value; if found, return true; otherwise report an error and return false
public Expect ( long expected ) : bool
expected long
리턴 bool

Expect() 공개 메소드

Expect a SByte value; if found, return true; otherwise report an error and return false
public Expect ( sbyte expected ) : bool
expected sbyte
리턴 bool

Expect() 공개 메소드

Expect a Int16 value; if found, return true; otherwise report an error and return false
public Expect ( short expected ) : bool
expected short
리턴 bool

Expect() 공개 메소드

Expect a UInt32 value; if found, return true; otherwise report an error and return false
public Expect ( uint expected ) : bool
expected uint
리턴 bool

Expect() 공개 메소드

Expect a UInt64 value; if found, return true; otherwise report an error and return false
public Expect ( ulong expected ) : bool
expected ulong
리턴 bool

Expect() 공개 메소드

Expect a Byte value; if found, return true; otherwise report an error and return false
public Expect ( ushort expected ) : bool
expected ushort
리턴 bool

ExpectMagic() 공개 메소드

Expect a magic sequence of bytes. If found, return true; otherwise report an error and return false.
public ExpectMagic ( string expected ) : bool
expected string
리턴 bool

ExpectPosition() 공개 메소드

Expect the input to be at a given position; if not so, report an error.
public ExpectPosition ( long expected ) : bool
expected long
리턴 bool

ExpectZeroes() 공개 메소드

Expect a sequence of zeroes, reporting errors if they are not found.
public ExpectZeroes ( int size, int count ) : bool
size int
count int
리턴 bool

MakeBigEndian() 공개 메소드

Switch the Reader for a BigEndianBinaryReader.
public MakeBigEndian ( ) : BinaryReader
리턴 BinaryReader

ReadCheckedAbsoluteBox3f() 공개 메소드

Read a Box3f that is conveyed using absolute coordinates, with a triplet of min values and a triplet of max values. This checks that the min values are less than or equal to the max values, reporting errors if not.
public ReadCheckedAbsoluteBox3f ( ) : Box3f
리턴 Box3f

Reset() 공개 메소드

Reset the stream position to the original position when the asset loader was created.
public Reset ( ) : void
리턴 void

SetProgressToPosition() 공개 메소드

Set Progress to the current reader Position, based on the Start offset and the Length.
public SetProgressToPosition ( ) : void
리턴 void

StartMarking() 공개 메소드

Switch to the use of a MarkingStream.
public StartMarking ( ) : MarkingStream
리턴 MarkingStream

StartMarking() 공개 메소드

Switch to the use of a MarkingStream.
public StartMarking ( BinaryReader &reader ) : MarkingStream
reader BinaryReader
리턴 MarkingStream

프로퍼티 상세

ProgressProperty 공개적으로 정적으로 프로퍼티

PropertyInfo for the Progress property.
public static PropertyInfo ProgressProperty
리턴 PropertyInfo