C# Класс Axiom.Serialization.Serializer

Summary description for Serializer.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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