MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / as_ptr

Method as_ptr

crates/c-api/src/config.rs:390–395  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

388 byte_capacity
389 }
390 fn as_ptr(&self) -> *mut u8 {
391 let mut byte_size = 0;
392 let mut byte_capacity = 0;
393 let cb = self.get_memory;
394 cb(self.foreign.data, &mut byte_size, &mut byte_capacity)
395 }
396 fn grow_to(&mut self, new_size: usize) -> Result<()> {
397 let cb = self.grow_memory;
398 let error = cb(self.foreign.data, new_size);

Callers 15

shrink_to_fitMethod · 0.45
shrink_to_fitMethod · 0.45
new_uninit_boxFunction · 0.45
new_uninit_boxed_sliceFunction · 0.45
try_new_uninit_boxFunction · 0.45
into_boxMethod · 0.45
c_callback_to_rust_fnFunction · 0.45
invoke_c_async_callbackFunction · 0.45
wasmtime_memory_dataFunction · 0.45
raw_writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected