8 #include <boost/assert.hpp> 15 std::shared_ptr<const runtime::MemoryProvider> memory_provider)
16 : memory_provider_(
std::move(memory_provider)),
30 "Ptr {} does not point to any memory chunk in wasm memory. Nothing " uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
void ext_allocator_free_version_1(runtime::WasmPointer ptr)
runtime::WasmPointer ext_allocator_malloc_version_1(runtime::WasmSize size)
uint32_t WasmPointer
type of wasm memory is 32 bit integer
std::shared_ptr< const runtime::MemoryProvider > memory_provider_
Logger createLogger(const std::string &tag)
MemoryExtension(std::shared_ptr< const runtime::MemoryProvider > memory_provider)