Writes the Vector2 data into a byte buffer.
Namespace:
com.onlineobject.objectnet
Assembly:
ObjectNetAPI (in ObjectNetAPI.dll)
public int Write(
Vector2 data,
ref byte[] buffer,
ref int offset
)
Parameters
- data
- Type: Vector2
The Vector2 data to write.
- buffer
- Type: array<Byte>[]()[][]%
The byte array buffer to write the data to.
- offset
- Type: Int32%
The current offset in the buffer. Will be updated after the write operation.
Return Value
The number of bytes written to the buffer.