File WAMRModuleMixin.h

template<typename T>
struct WAMRModuleMixin

Public Functions

inline T &underlying()
inline void validateNativePointer(void *nativePtr, int size)
inline void *wasmOffsetToNativePointer(uint32_t wasmOffset)
inline uint32_t nativePointerToWasmOffset(void *nativePtr)
inline uint32_t wasmModuleMalloc(size_t size, void **nativePtr)
inline void writeStringArrayToMemory(const std::vector<std::string> &strings, uint32_t *strOffsets, char *strBuffer)
inline void writeArgvToWamrMemory(uint32_t *argvOffsetsWasm, char *argvBuffWasm)