Skip to contents

Get the size of exported memory (in bytes and pages).

Usage

wasmer_memory_size_ext(ptr, instance_name, memory_name)

Arguments

ptr

External pointer to WasmerRuntime.

instance_name

Name of the instance.

memory_name

Name of the exported memory (default "memory").

Value

List with size_bytes and size_pages

Details

Get the size of exported memory (in bytes and pages)

Examples

if (FALSE) { # \dontrun{
wasmer_memory_size_ext(ptr, "inst1", "memory")
} # }