Milky2018/wasmoon_runtime/native/bridge does not have a README file
pub(all) suberror CHeapError {
OutOfBoundsArrayAccess
NullReference
OutOfMemory
}fn CHeap::alloc_array(self : CHeap, type_idx : Int, len : Int, init_value : Value) -> Int raise CHeapErrorfn CHeap::alloc_array_from_values(self : CHeap, type_idx : Int, elements : Array[Value]) -> Int raise CHeapErrorfn CHeap::array_copy(self : CHeap, dst_idx : Int, dst_offset : Int, src_idx : Int, src_offset : Int, count : Int) -> Unit raise CHeapErrorfn CHeap::array_fill(self : CHeap, array_idx : Int, offset : Int, value : Value, count : Int) -> Unit raise CHeapErrorfn CHeap::array_get(self : CHeap, array_idx : Int, elem_idx : Int, elem_type : ValueType) -> Value raise CHeapErrorfn CHeap::array_set(self : CHeap, array_idx : Int, elem_idx : Int, value : Value) -> Unit raise CHeapErrorpub type NativeAtomicWaitlet EXCEPTION_REF_TAG : Int64fn alloc_guarded_memory_desc(initial_pages : Int, max_pages : Int?, is_shared? : Bool) -> MemoryDescriptorfn alloc_memory(size : Int64) -> Int64fn alloc_memory_desc(size_bytes : Int64, max_pages : Int64?, is_memory64? : Bool, page_size_log2? : Int, is_shared? : Bool) -> MemoryDescriptorfn atomic_wait_begin(descriptor : MemoryDescriptor, offset : Int64, width : Int, expected : Int64, timeout : Int64) -> NativeAtomicWait?fn cooperative_idle() -> Unitfn decode_heap_ref(encoded : Int64) -> Intfn encode_store_funcref(address : Int) -> Int64fn free_memory(mem_ptr : Int64) -> Unitfn gc_debug_set_fail_alloc(fail_at : Int, fail_every? : Int) -> Unitfn memory_atomic_compare_exchange(descriptor : MemoryDescriptor, offset : Int64, width : Int, expected : Int64, replacement : Int64) -> Int64fn memory_atomic_rmw(descriptor : MemoryDescriptor, offset : Int64, width : Int, operation : Int, value : Int64) -> Int64fn memory_atomic_store(descriptor : MemoryDescriptor, offset : Int64, width : Int, value : Int64) -> Unitfn memory_descriptor_copy(destination_memory : MemoryDescriptor, destination : Int64, source_memory : MemoryDescriptor, source : Int64, length : Int64) -> Intfn memory_descriptor_fill(mem_desc_ptr : MemoryDescriptor, destination : Int64, value : Int, size : Int) -> Intfn memory_descriptor_fill64(memory : MemoryDescriptor, destination : Int64, value : Int, length : Int64) -> Intfn memory_descriptor_grow(mem_desc_ptr : MemoryDescriptor, delta_pages : Int, max_pages : Int) -> Intfn memory_descriptor_move(mem_desc_ptr : MemoryDescriptor, destination : Int64, source : Int64, size : Int) -> Intfn memory_descriptor_read(mem_desc_ptr : MemoryDescriptor, offset : Int64, out : FixedArray[Byte], size : Int) -> Intfn memory_descriptor_write(mem_desc_ptr : MemoryDescriptor, offset : Int64, data : FixedArray[Byte], size : Int) -> Intfn memory_descriptor_write_bytes(mem_desc_ptr : MemoryDescriptor, offset : Int64, data : Bytes, size : Int) -> IntInstall
Download zipShared Wasmoon interpreter state and target-specific storage primitives
Dependencies