[][src]Function wasmer_runtime_c_api::memory::wasmer_memory_length

#[no_mangle]
pub extern "C" fn wasmer_memory_length(memory: *const wasmer_memory_t) -> u32

Reads the current length (in pages) of the given memory.

The function returns zero if memory is a null pointer.

Example:

uint32_t memory_length = wasmer_memory_length(memory);

printf("Memory pages length: %d\n", memory_length);