MCPcopy Create free account
hub / github.com/drogus/crows / create_return_value

Function create_return_value

wasm/src/lib.rs:237–243  ·  view source on GitHub ↗
(status: u8, length: u32, ptr: u32)

Source from the content-addressed store, hash-verified

235}
236
237fn create_return_value(status: u8, length: u32, ptr: u32) -> u64 {
238 assert!(
239 length <= 0x00FFFFFF,
240 "Length must be no larger than 3 bytes"
241 );
242 ((status as u64) << 56) | ((length as u64) << 32) | (ptr as u64)
243}
244
245impl WasiHostCtx {
246 pub fn instantiate(&mut self, mem: Memory) {

Callers 1

wrap_asyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected