Wraps a nkMemory::Buffer and offers functions for use in scripting.
More...
Wraps a nkMemory::Buffer and offers functions for use in scripting.
◆ updateEnvironment()
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ constructor()
Wrapper static function for the empty size constructor of nkMemory::Buffer.
local t = nkMemory.Buffer.new(byteSize) ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ constructorFromString()
Wrapper static function for a string copy constructor.
local t = nkMemory.Buffer.fromString('aString') ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::nkMemoryWrap::BufferWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getData()
Wrapper function for the nkMemory::Buffer::getData() function.
- Parameters
-
stack | The parameter stack. |
- Returns
- The getter value, as a unsigned char* (converted to a string in Lua).
◆ getSize()
Wrapper function for the nkMemory::Buffer::getSize() function.
- Parameters
-
stack | The parameter stack. |
- Returns
- The getter value, as an int.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsAstraeus/Scripts/nkMemoryWrap/Containers/BufferWrapper.h