MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / wasm_memory_new

Function wasm_memory_new

src/wasm-c.cc:911–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909WASM_DEFINE_REF(memory, Memory)
910
911wasm_memory_t* wasm_memory_new(
912 wasm_store_t* store, const wasm_memorytype_t* type
913) {
914 return release_memory(Memory::make(store, type));
915}
916
917wasm_memorytype_t* wasm_memory_type(const wasm_memory_t* memory) {
918 return release_memorytype(memory->type());

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected