![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The Data object holds a pointer and size information to an allocated memory data location.
see also ConstData, BufferedData
Usage examples:
The default constructor.
Murl.Data new()
Constructor allocating memory. The allocated memory is filled with zeros.
Murl.Data new(Integer byteSize)
byteSize | Byte size of the memory to allocate. |
The copy constructor taking a String object.
string | The string object to copy. |
The copy constructor taking a ConstData object.
Murl.Data new(Murl.ConstData data)
data | The data object to copy. |
The copy constructor.
data | The data object to copy. |
The copy constructor taking a MutableData object.
Murl.Data new(Murl.MutableData data)
data | The data object to copy. |
Release the data. Free (delete) the memory.
ReleaseData()
Obtain the memory from a data object. The source data object is empty after obtaining.
Murl.Data ObtainData(Murl.Data data)
data | The data object to obtain. |
Resize the memory. The content of the current memory is copied into the resized memory. The current memory is truncated if the new size is smaller, the remaining new memory is filled with zeros if the new size is larger.
ResizeData(Integer newByteSize)
newByteSize | The new byte size of the memory. |