Murl Engine Lua Addon API  Version 1.0 beta
Murl.MutableData

The MutableData object holds a pointer and size information to a mutable memory data location.


Table members

Inherited


Murl.ConstData

Functions


Murl.MutableData.new()

The default constructor.

Murl.MutableData new()

Returns
Murl.MutableData


Methods


CopyDataTo(destination, byteOffset)

Copy the memory data to a destination data object. The destination data object must have already assigned memory. A valid byte offset is in range [0 .. GetByteSize() - 1].

Integer, Murl.MutableData CopyDataTo(Murl.MutableData destination, Integer byteOffset)

Parameters
destinationThe the destination data object.
byteOffsetThe source byte offset.
Returns
Integer The number of bytes copied to the destination.
Murl.MutableData destination The the destination data object.

CopyDataFrom(source, byteOffset)

Copy the memory data from a source data object. The data object must have already assigned memory. A valid byte offset is in range [0 .. GetByteSize() - 1].

Integer CopyDataFrom(Murl.ConstData source, Integer byteOffset)

Parameters
sourceThe source data object.
byteOffsetThe destination byte offset.
Returns
Integer The number of bytes copied to the destination.