public class LuaByteArray

A simple wrapper class for byte arrays.

Used for serialization over the internet, as regular strings get encoded which breaks the internal bytes.


public byte[] GetBytes()

Get the bytes from the byte array.

Returns: (string) A string of the bytes. (Byte arrays in lua are internally represented as strings)


public int GetArrayLength()

Get the length of the byte array.

Returns: (int) The length of the byte array.


public byte GetByteAt(int position)

Get the byte at a specified position

Arguments

Returns: (byte) The byte.