API Documentation
BufferCastWrapper.h
1 // BufferCastWrapper.h
3 //
5 
7 {
14  template <typename T>
15  class BufferCastWrapper final
16  {
17  public :
18 
19  // Environment update
27  static void updateEnvironment (nkScripts::Environment* env, nkMemory::StringView typeName, nkMemory::StringView typeNameUserObject = "") ;
28 
29  // Callbacks
30  // Constructor, destructor
47  static void destructor (void* toDestroy) ;
48 
49  // Getters
72  } ;
73 }
nkAstraeus::nkMemoryWrap::BufferCastWrapper::getData
static nkScripts::OutputValue getData(const nkScripts::DataStack &stack)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkMemoryWrap::BufferCastWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env, nkMemory::StringView typeName, nkMemory::StringView typeNameUserObject="")
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkMemoryWrap::BufferCastWrapper::constructor
static nkScripts::OutputValue constructor(const nkScripts::DataStack &stack)
nkAstraeus::nkMemoryWrap::BufferCastWrapper::getSize
static nkScripts::OutputValue getSize(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkMemoryWrap::BufferCastWrapper::destructor
static void destructor(void *toDestroy)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::nkMemoryWrap::BufferCastWrapper
Wraps a nkMemory::BufferCast<T> and offers functions for use in scripting.
Definition: BufferCastWrapper.h:16
nkAstraeus::nkMemoryWrap
Encompasses the wrapping of nkMemory for scripting.
Definition: Constants.h:7