C# 클래스 Axiom.Serialization.Serializer

Summary description for Serializer.
파일 보기 프로젝트 열기: WolfgangSt/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
currentChunkLength int
version string

공개 메소드들

메소드 설명
Serializer ( ) : System

Default constructor.

보호된 메소드들

메소드 설명
IgnoreCurrentChunk ( BinaryReader reader ) : void

Skips past a particular chunk.

Only really used during development, when logic for handling particular chunks is not yet complete.

IsEOF ( BinaryReader reader ) : bool
ReadBool ( BinaryReader reader ) : bool
ReadBytes ( BinaryReader reader, int count, IntPtr dest ) : void

Reads a specified number of floats and copies them into the destination pointer.

ReadFileChunk ( BinaryReader reader ) : short

Reads a chunk ID and chunk size.

ReadFileHeader ( BinaryReader reader ) : void

Reads a file header and checks the version string.

ReadFloat ( BinaryReader reader ) : float
ReadFloats ( BinaryReader reader, int count, IntPtr dest ) : void

Reads a specified number of floats and copies them into the destination pointer.

ReadFloats ( BinaryReader reader, int count, IntPtr dest, float destArray ) : void

Reads a specified number of floats and copies them into the destination pointer.

This overload will also copy the values into the specified destination array.

ReadInt ( BinaryReader reader ) : int
ReadInts ( BinaryReader reader, int count, IntPtr dest ) : void

Reads a specified number of integers and copies them into the destination pointer.

ReadLong ( BinaryReader reader ) : long
ReadQuat ( BinaryReader reader ) : Quaternion

Reads and returns a Quaternion.

ReadShort ( BinaryReader reader ) : short
ReadShorts ( BinaryReader reader, int count, IntPtr dest ) : void

Reads a specified number of shorts and copies them into the destination pointer.

ReadString ( BinaryReader reader ) : string

Reads from the stream up to the first endline character.

ReadString ( BinaryReader reader, char delimiter ) : string

Reads from the stream up to the specified delimiter character.

ReadUInt ( BinaryReader reader ) : uint
ReadULong ( BinaryReader reader ) : ulong
ReadUShort ( BinaryReader reader ) : ushort
ReadVector3 ( BinaryReader reader ) : Vector3

Reads and returns a Vector3 structure.

ReadVector4 ( BinaryReader reader ) : Vector4

Reads and returns a Vector4 structure.

Seek ( BinaryReader reader, long length ) : void
Seek ( BinaryReader reader, long length, SeekOrigin origin ) : void

Skips to a particular part of the binary stream.

WriteBool ( BinaryWriter writer, bool val ) : void
WriteBytes ( BinaryWriter writer, int count, IntPtr src ) : void

Writes a specified number of bytes.

WriteChunk ( BinaryWriter writer, MeshChunkID id, int chunkLength ) : void

Writes a chunk ID and chunk size. This would be more accurately named WriteChunkHeader, but this name is the counter of ReadChunk.

WriteChunk ( BinaryWriter writer, SkeletonChunkID id, int chunkLength ) : void

Writes a chunk ID and chunk size. This would be more accurately named WriteChunkHeader, but this name is the counter of ReadChunk.

WriteFileHeader ( BinaryWriter writer, string fileVersion ) : void

Writes a file header and version string.

WriteFloat ( BinaryWriter writer, float val ) : void
WriteFloats ( BinaryWriter writer, int count, IntPtr src ) : void

Writes a specified number of floats.

WriteInt ( BinaryWriter writer, int val ) : void
WriteInts ( BinaryWriter writer, int count, IntPtr src ) : void

Writes a specified number of integers.

WriteLong ( BinaryWriter writer, long val ) : void
WriteQuat ( BinaryWriter writer, Quaternion quat ) : void

Reads and returns a Quaternion.

WriteShort ( BinaryWriter writer, short val ) : void
WriteShorts ( BinaryWriter writer, int count, IntPtr src ) : void

Writes a specified number of shorts.

WriteString ( BinaryWriter writer, string str ) : void

Writes the string to the stream including the endline character.

WriteString ( BinaryWriter writer, string str, char delimiter ) : void

Writes the string to the stream including the specified delimiter character.

WriteUInt ( BinaryWriter writer, uint val ) : void
WriteULong ( BinaryWriter writer, ulong val ) : void
WriteUShort ( BinaryWriter writer, ushort val ) : void
WriteVector3 ( BinaryWriter writer, Vector3 vector ) : void

Writes a Vector3 structure.

WriteVector4 ( BinaryWriter writer, Vector4 vector ) : void

Writes a Vector4 structure.

메소드 상세

IgnoreCurrentChunk() 보호된 메소드

Skips past a particular chunk.
Only really used during development, when logic for handling particular chunks is not yet complete.
protected IgnoreCurrentChunk ( BinaryReader reader ) : void
reader System.IO.BinaryReader
리턴 void

IsEOF() 보호된 메소드

protected IsEOF ( BinaryReader reader ) : bool
reader System.IO.BinaryReader
리턴 bool

ReadBool() 보호된 메소드

protected ReadBool ( BinaryReader reader ) : bool
reader System.IO.BinaryReader
리턴 bool

ReadBytes() 보호된 메소드

Reads a specified number of floats and copies them into the destination pointer.
protected ReadBytes ( BinaryReader reader, int count, IntPtr dest ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
리턴 void

ReadFileChunk() 보호된 메소드

Reads a chunk ID and chunk size.
protected ReadFileChunk ( BinaryReader reader ) : short
reader System.IO.BinaryReader
리턴 short

ReadFileHeader() 보호된 메소드

Reads a file header and checks the version string.
protected ReadFileHeader ( BinaryReader reader ) : void
reader System.IO.BinaryReader
리턴 void

ReadFloat() 보호된 메소드

protected ReadFloat ( BinaryReader reader ) : float
reader System.IO.BinaryReader
리턴 float

ReadFloats() 보호된 메소드

Reads a specified number of floats and copies them into the destination pointer.
protected ReadFloats ( BinaryReader reader, int count, IntPtr dest ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
리턴 void

ReadFloats() 보호된 메소드

Reads a specified number of floats and copies them into the destination pointer.
This overload will also copy the values into the specified destination array.
protected ReadFloats ( BinaryReader reader, int count, IntPtr dest, float destArray ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
destArray float A float array that is to have the values copied into it at the same time as 'dest'.
리턴 void

ReadInt() 보호된 메소드

protected ReadInt ( BinaryReader reader ) : int
reader System.IO.BinaryReader
리턴 int

ReadInts() 보호된 메소드

Reads a specified number of integers and copies them into the destination pointer.
protected ReadInts ( BinaryReader reader, int count, IntPtr dest ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
리턴 void

ReadLong() 보호된 메소드

protected ReadLong ( BinaryReader reader ) : long
reader System.IO.BinaryReader
리턴 long

ReadQuat() 보호된 메소드

Reads and returns a Quaternion.
protected ReadQuat ( BinaryReader reader ) : Quaternion
reader System.IO.BinaryReader
리턴 Axiom.Math.Quaternion

ReadShort() 보호된 메소드

protected ReadShort ( BinaryReader reader ) : short
reader System.IO.BinaryReader
리턴 short

ReadShorts() 보호된 메소드

Reads a specified number of shorts and copies them into the destination pointer.
protected ReadShorts ( BinaryReader reader, int count, IntPtr dest ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
리턴 void

ReadString() 보호된 메소드

Reads from the stream up to the first endline character.
protected ReadString ( BinaryReader reader ) : string
reader System.IO.BinaryReader
리턴 string

ReadString() 보호된 메소드

Reads from the stream up to the specified delimiter character.
protected ReadString ( BinaryReader reader, char delimiter ) : string
reader System.IO.BinaryReader
delimiter char The character that signals the end of the string.
리턴 string

ReadUInt() 보호된 메소드

protected ReadUInt ( BinaryReader reader ) : uint
reader System.IO.BinaryReader
리턴 uint

ReadULong() 보호된 메소드

protected ReadULong ( BinaryReader reader ) : ulong
reader System.IO.BinaryReader
리턴 ulong

ReadUShort() 보호된 메소드

protected ReadUShort ( BinaryReader reader ) : ushort
reader System.IO.BinaryReader
리턴 ushort

ReadVector3() 보호된 메소드

Reads and returns a Vector3 structure.
protected ReadVector3 ( BinaryReader reader ) : Vector3
reader System.IO.BinaryReader
리턴 Vector3

ReadVector4() 보호된 메소드

Reads and returns a Vector4 structure.
protected ReadVector4 ( BinaryReader reader ) : Vector4
reader System.IO.BinaryReader
리턴 Vector4

Seek() 보호된 메소드

protected Seek ( BinaryReader reader, long length ) : void
reader System.IO.BinaryReader
length long
리턴 void

Seek() 보호된 메소드

Skips to a particular part of the binary stream.
protected Seek ( BinaryReader reader, long length, SeekOrigin origin ) : void
reader System.IO.BinaryReader
length long Number of bytes to skip.
origin SeekOrigin
리턴 void

Serializer() 공개 메소드

Default constructor.
public Serializer ( ) : System
리턴 System

WriteBool() 보호된 메소드

protected WriteBool ( BinaryWriter writer, bool val ) : void
writer System.IO.BinaryWriter
val bool
리턴 void

WriteBytes() 보호된 메소드

Writes a specified number of bytes.
protected WriteBytes ( BinaryWriter writer, int count, IntPtr src ) : void
writer System.IO.BinaryWriter
count int Number of values to write.
src System.IntPtr Pointer that holds the values.
리턴 void

WriteChunk() 보호된 메소드

Writes a chunk ID and chunk size. This would be more accurately named WriteChunkHeader, but this name is the counter of ReadChunk.
protected WriteChunk ( BinaryWriter writer, MeshChunkID id, int chunkLength ) : void
writer System.IO.BinaryWriter
id MeshChunkID
chunkLength int
리턴 void

WriteChunk() 보호된 메소드

Writes a chunk ID and chunk size. This would be more accurately named WriteChunkHeader, but this name is the counter of ReadChunk.
protected WriteChunk ( BinaryWriter writer, SkeletonChunkID id, int chunkLength ) : void
writer System.IO.BinaryWriter
id SkeletonChunkID
chunkLength int
리턴 void

WriteFileHeader() 보호된 메소드

Writes a file header and version string.
protected WriteFileHeader ( BinaryWriter writer, string fileVersion ) : void
writer System.IO.BinaryWriter
fileVersion string
리턴 void

WriteFloat() 보호된 메소드

protected WriteFloat ( BinaryWriter writer, float val ) : void
writer System.IO.BinaryWriter
val float
리턴 void

WriteFloats() 보호된 메소드

Writes a specified number of floats.
protected WriteFloats ( BinaryWriter writer, int count, IntPtr src ) : void
writer System.IO.BinaryWriter
count int Number of values to write.
src System.IntPtr Pointer that holds the values.
리턴 void

WriteInt() 보호된 메소드

protected WriteInt ( BinaryWriter writer, int val ) : void
writer System.IO.BinaryWriter
val int
리턴 void

WriteInts() 보호된 메소드

Writes a specified number of integers.
protected WriteInts ( BinaryWriter writer, int count, IntPtr src ) : void
writer System.IO.BinaryWriter
count int Number of values to write.
src System.IntPtr Pointer that holds the values.
리턴 void

WriteLong() 보호된 메소드

protected WriteLong ( BinaryWriter writer, long val ) : void
writer System.IO.BinaryWriter
val long
리턴 void

WriteQuat() 보호된 메소드

Reads and returns a Quaternion.
protected WriteQuat ( BinaryWriter writer, Quaternion quat ) : void
writer System.IO.BinaryWriter
quat Axiom.Math.Quaternion
리턴 void

WriteShort() 보호된 메소드

protected WriteShort ( BinaryWriter writer, short val ) : void
writer System.IO.BinaryWriter
val short
리턴 void

WriteShorts() 보호된 메소드

Writes a specified number of shorts.
protected WriteShorts ( BinaryWriter writer, int count, IntPtr src ) : void
writer System.IO.BinaryWriter
count int Number of values to write.
src System.IntPtr Pointer that holds the values.
리턴 void

WriteString() 보호된 메소드

Writes the string to the stream including the endline character.
protected WriteString ( BinaryWriter writer, string str ) : void
writer System.IO.BinaryWriter
str string
리턴 void

WriteString() 보호된 메소드

Writes the string to the stream including the specified delimiter character.
protected WriteString ( BinaryWriter writer, string str, char delimiter ) : void
writer System.IO.BinaryWriter
str string
delimiter char The character that signals the end of the string.
리턴 void

WriteUInt() 보호된 메소드

protected WriteUInt ( BinaryWriter writer, uint val ) : void
writer System.IO.BinaryWriter
val uint
리턴 void

WriteULong() 보호된 메소드

protected WriteULong ( BinaryWriter writer, ulong val ) : void
writer System.IO.BinaryWriter
val ulong
리턴 void

WriteUShort() 보호된 메소드

protected WriteUShort ( BinaryWriter writer, ushort val ) : void
writer System.IO.BinaryWriter
val ushort
리턴 void

WriteVector3() 보호된 메소드

Writes a Vector3 structure.
protected WriteVector3 ( BinaryWriter writer, Vector3 vector ) : void
writer System.IO.BinaryWriter
vector Vector3
리턴 void

WriteVector4() 보호된 메소드

Writes a Vector4 structure.
protected WriteVector4 ( BinaryWriter writer, Vector4 vector ) : void
writer System.IO.BinaryWriter
vector Vector4
리턴 void

프로퍼티 상세

currentChunkLength 보호되어 있는 프로퍼티

Length of the chunk that is currently being processed.
protected int currentChunkLength
리턴 int

version 보호되어 있는 프로퍼티

Version string of this serializer.
protected string version
리턴 string