Murl Engine Lua Addon API  Version 1.0 beta
Murl.ConstData

The ConstData object holds a pointer and size information to a read-only memory data location.

see also Data, BufferedData


Table members

Functions


Murl.ConstData.new()

The default constructor.

Murl.ConstData new()

Returns
Murl.ConstData


Methods


ReleaseData()

Release the data, set data pointer to null and size to zero.

ReleaseData()


IsEmpty()

Check if the data object is empty.

Boolean IsEmpty()

Returns
Boolean true if the data pointer is null.

GetByteSize32()

Get the 32 bit byte size of the memory data location.

Integer GetByteSize32()

Returns
Integer The 32 bit byte size of the memory data location or zero if the memory data byte size does not fit into 32 bit.

GetByteSize()

Get the byte size of the memory data location.

Integer GetByteSize()

Returns
Integer The byte size of the memory data location.

GetString()

Get a string from the memory data. (!) This method does not take care of zero termination.

String GetString()

Returns
String The string object containing the memory data.

GetString(length)

Get a string from the memory data with length. (!) This method does not take care of zero termination.

String GetString(Integer length)

Parameters
lengthThe length of the string.
Returns
String The string object containing the memory data.

GetHashValue()

Calculate the data hash value.

Integer GetHashValue()

Returns
Integer The hash value.


Metamethods


The equal to operator.

Equal to comparison operator with string.

Returns
Boolean = Murl.ConstData == String

The equal to operator.

Equal to comparison operator.

Returns
Boolean = Murl.ConstData == Murl.ConstData