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

Method set_bytes

crates/debugger/src/host/api.rs:489–502  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Memory>,
        d: Resource<Debuggee>,
        addr: u64,
        bytes: Vec<u8>,
    )

Source from the content-addressed store, hash-verified

487 }
488
489 async fn set_bytes(
490 &mut self,
491 self_: Resource<Memory>,
492 d: Resource<Debuggee>,
493 addr: u64,
494 bytes: Vec<u8>,
495 ) -> Result<()> {
496 let memory = *self.get(&self_)?;
497 let d = debugger(self, &d)?;
498 d.memory_write_bytes(memory, addr, bytes)
499 .await?
500 .ok_or(wit::Error::OutOfBounds)?;
501 Ok(())
502 }
503
504 async fn get_u8(
505 &mut self,

Callers 1

test_loopFunction · 0.80

Calls 4

debuggerFunction · 0.85
OkFunction · 0.85
memory_write_bytesMethod · 0.80
getMethod · 0.45

Tested by 1

test_loopFunction · 0.64