Submodules
Public
Types
| Name | Description |
|---|---|
| AtomicOrdering | All possible atomic orderings |
Functions
| Name | Description |
|---|---|
| mem::@tclone_slice | |
| mem::new_array | |
| mem::aligned_pointer | |
| mem::@stack_pool | |
| mem::clear_inline | |
| mem::realloc | |
| mem::@masked_load_aligned | Load a vector from memory according to a mask. |
| mem::masked_store | Store parts of a vector according to the mask, assuming default alignment. |
| mem::malloc_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::@pool_init | |
| mem::tnew | |
| mem::copy_inline | Copy memory from src to dst efficiently, assuming the memory ranges do not overlap, it... |
| mem::equals | Test if n elements are equal in a slice, pointed to by a pointer etc. |
| mem::free_aligned | |
| mem::set_inline | Sets all memory in a region to that of the provided byte. Never calls OS memset. |
| mem::tmalloc | |
| mem::calloc_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::@unaligned_store | |
| mem::type_alloc_must_be_aligned | Check if an allocation must be aligned given the type. |
| mem::__memcpy | |
| mem::@report_heap_allocs_in_scope | Run the tracking allocator in the scope, then... |
| mem::move | Copy memory from src to dst but correctly handle the possibility of overlapping ranges. |
| mem::trealloc | |
| mem::@clone_aligned | |
| mem::new_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::aligned_offset | |
| mem::get_tracking_env | |
| mem::free | |
| mem::talloc_array | |
| mem::new | |
| mem::new_array_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::@atomic_load | |
| mem::set | Sets all memory in a region to that of the provided byte. |
| mem::@scoped | Run with a specific allocator inside of the macro body. |
| mem::@clone_slice | |
| mem::@volatile_load | |
| mem::@assert_leak | Assert on memory leak in the scope of the macro body. |
| mem::ptr_is_aligned | |
| mem::compare_exchange_volatile | |
| mem::temp_array | |
| mem::alloc_with_padding | |
| mem::@clone | |
| mem::alloc_array | |
| mem::alloc_array_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::new_with_padding | |
| mem::@masked_store_aligned | |
| mem::os_pagesize | |
| mem::@scatter_aligned | |
| mem::realloc_aligned | |
| mem::temp_pop | Pop the current temp allocator. A pop must always be balanced with a push. |
| mem::talloc_with_padding | |
| mem::@volatile_store | |
| mem::calloc | |
| mem::zero_volatile | |
| mem::clear | |
| mem::copy | Copy memory from src to dst efficiently, assuming the memory ranges do not overlap. |
| mem::masked_load | Load a vector from memory according to a mask assuming default alignment. |
| mem::@pool | Create a new temporary allocator.... |
| mem::@atomic_store | |
| mem::temp_with_padding | |
| mem::gather | Load values from a pointer vector, assuming default alignment. |
| mem::@unaligned_load | |
| mem::@stack_mem | Allocate [size] bytes on the stack to use for allocation,... |
| mem::ptr_is_page_aligned | |
| mem::talloc | |
| mem::@tclone | |
| mem::__memset | |
| mem::@gather_aligned | Load values from a pointer vector. |
| mem::__memcmp | |
| mem::compare_exchange | |
| mem::scatter | |
| mem::@unaligned_addr | Takes the address of a possibly unaligned variable or member,... |
| mem::tcalloc | |
| mem::malloc | |
| mem::alloc | |
| mem::alloc_aligned | Allocate using an aligned allocation. This is necessary for types with a default memory alignment... |
| mem::temp_push | Push the current temp allocator. A push must always be balanced with a pop using the current state. |
Globals
| Name | Description |
|---|---|
| __heap_base | |
| KB | |
| MB | |
| GB | |
| DEFAULT_MEM_ALIGNMENT | |
| TB | |
| MAX_MEMORY_ALIGNMENT |
Private
Functions
| Name | Description |
|---|---|
| mem::initialize_wasm_mem | |
| mem::@constant_is_power_of_2 |
Globals
| Name | Description |
|---|---|
| wasm_allocator |