Click or drag to resize

GameLiftManagerGameControllerConvertByteArrayIntoVector Method

Converts a byte array into a vector3 or 4 depending on the vector size sent

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
private Vector4 ConvertByteArrayIntoVector(
	byte[] _payload,
	int _vectorStartLocation,
	int _vectorSize
)

Parameters

_payload
Type: SystemByte
The byte array to be converted
_vectorStartLocation
Type: SystemInt32
The start location in the byte array for the vector
_vectorSize
Type: SystemInt32
the size of the vector to be found in bytes (3*sizeof(float) for vector3)

Return Value

Type: Vector4
A vector2, 3, or 4, depending on the _vectorSize variable
See Also