new AxSerializationUtils()
Creates a new instance of AxSerializationUtils
Contains utilities for serialization and deserialization of different types of Axis objects
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 |
(static) DeserializePixelFormat(sourceStream) → {AxPixelFormat}
Deserializes a pixel format from the given stream
Parameters:
Name | Type | Description |
---|---|---|
sourceStream |
AxStream | Stream with the serialized data |
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 |
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 |
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 |
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 |
(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 |
(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 |
(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 |
(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 |