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