Searched refs:current_length (Results 1 – 15 of 15) sorted by relevance
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | memory.rs | 389 slice::from_raw_parts(definition.base.as_ptr(), definition.current_length()) in data() 409 slice::from_raw_parts_mut(definition.base.as_ptr(), definition.current_length()) in data_mut() 487 store[self.instance].memory(self.index).current_length() in internal_data_size() 906 slice::from_raw_parts(definition.base.as_ptr().cast(), definition.current_length()) in data()
|
| H A D | store.rs | 1930 assert_eq!(self.vm_store_context.gc_heap.current_length(), 0); in allocate_gc_store()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/ |
| H A D | static_.rs | 80 current_length: self.size.into(), in vmmemory()
|
| H A D | mmap.rs | 248 current_length: self.len.into(), in vmmemory()
|
| H A D | shared_memory.rs | 111 .current_length in grow()
|
| H A D | malloc.rs | 100 current_length: self.byte_len.into(), in vmmemory()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | vmcontext.rs | 385 pub current_length: AtomicUsize, field 402 pub fn current_length(&self) -> usize { in current_length() method 403 self.current_length.load(Ordering::Relaxed) in current_length() 413 current_length: other.current_length().into(), in load() 438 offset_of!(VMMemoryDefinition, current_length), in check_vmmemory_definition_offsets() 1300 current_length: AtomicUsize::new(0), in default() 1349 offset_of!(VMStoreContext, gc_heap) + offset_of!(VMMemoryDefinition, current_length), in field_offsets()
|
| H A D | instance.rs | 1096 let src = self.validate_inbounds(src_mem.current_length(), src, len)?; in memory_copy() 1097 let dst = self.validate_inbounds(dst_mem.current_length(), dst, len)?; in memory_copy() 1140 let dst = self.validate_inbounds(memory.current_length(), dst, len)?; in memory_fill() 1202 let dst = self.validate_inbounds(memory.current_length(), dst, len.into())?; in memory_init_segment()
|
| H A D | memory.rs | 801 let length = u64::try_from(def.current_length()).unwrap(); in validate_atomic_addr()
|
| H A D | libcalls.rs | 655 .current_length(), in grow_gc_heap() 673 .current_length(), in grow_gc_heap()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/ |
| H A D | gc_runtime.rs | 413 let len = vmmemory.current_length(); in heap_slice() 422 let len = vmmemory.current_length(); in heap_slice_mut()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/ |
| H A D | allocator.rs | 626 Some(end) if end <= memory.current_length() => { in check_memory_init_bounds() 669 .current_length(); in initialize_memories() 712 assert!(offset + src.len() <= memory.current_length()); in initialize_memories()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/ |
| H A D | drc.rs | 774 let len = memory.vmmemory().current_length(); in attach() 1073 current_length: AtomicUsize::new(vmmemory.current_length()), in vmmemory()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/ |
| H A D | memory.rs | 96 current_length: self.mem.byte_size().into(), in vmmemory()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | instance.rs | 494 core::slice::from_raw_parts(memory.base.as_ptr(), memory.current_length()) in options_memory() 511 core::slice::from_raw_parts_mut(memory.base.as_ptr(), memory.current_length()) in options_memory_mut()
|