Class: AxSerializationUtils

AxSerializationUtils()

new AxSerializationUtils()

Creates a new instance of AxSerializationUtils Contains utilities for serialization and deserialization of different types of Axis objects
Source:

Methods

(static) DeserializeMatrix(sourceStream, result)

Deserializes a matrix from the given stream
Parameters:
Name Type Description
sourceStream AxStream Stream with the serialized data
result AxMatrix The deserialized matrix
Source:

(static) DeserializePixelFormat(sourceStream) → {AxPixelFormat}

Deserializes a pixel format from the given stream
Parameters:
Name Type Description
sourceStream AxStream Stream with the serialized data
Source:
Returns:
The deserialized pixel format
Type
AxPixelFormat

(static) DeserializeVector2(sourceStream) → {AxVector2}

Deserializes a vector from the given stream
Parameters:
Name Type Description
sourceStream AxStream Stream with the serialized data
Source:
Returns:
The deserialized vector
Type
AxVector2

(static) DeserializeVector3(sourceStream) → {AxVector3}

Deserializes a vector from the given stream
Parameters:
Name Type Description
sourceStream AxStream Stream with the serialized data
Source:
Returns:
The deserialized vector
Type
AxVector3

(static) DeserializeVector4(sourceStream) → {AxVector4}

Deserializes a vector from the given stream
Parameters:
Name Type Description
sourceStream AxStream Stream with the serialized data
Source:
Returns:
The deserialized vector
Type
AxVector4

(static) SerializeMatrix(destinationStream, matrix)

Serializes the given matrix and writes the serialized data into the given stream
Parameters:
Name Type Description
destinationStream AxStream Stream in which to write the serialized data
matrix AxMatrix The matrix which is to be serialized
Source:

(static) SerializePixelFormat(destinationStream, format)

Serializes the given pixel format and writes the serialized data into the given stream
Parameters:
Name Type Description
destinationStream AxStream Stream in which to write the serialized data
format AxPixelFormat The pixel format which is to be serialized
Source:

(static) SerializeVector2(destinationStream, vector)

Serializes the given vector and writes the serialized data into the given stream
Parameters:
Name Type Description
destinationStream AxStream Stream in which to write the serialized data
vector AxVector2 The vector which is to be serialized
Source:

(static) SerializeVector3(destinationStream, vector)

Serializes the given vector and writes the serialized data into the given stream
Parameters:
Name Type Description
destinationStream AxStream Stream in which to write the serialized data
vector AxVector3 The vector which is to be serialized
Source:

(static) SerializeVector4(destinationStream, vector)

Serializes the given vector and writes the serialized data into the given stream
Parameters:
Name Type Description
destinationStream AxStream Stream in which to write the serialized data
vector AxVector4 The vector which is to be serialized
Source:

Documentation generated by JSDoc 3.5.3 on Wed Jan 17 2018 17:06:57 GMT+0200 (FLE Standard Time)