MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / write_64

Method write_64

crates/tinywasm/src/store/memory/vec.rs:190–194  ·  view source on GitHub ↗
(&mut self, base: u64, offset: u64, bytes: [u8; 8])

Source from the content-addressed store, hash-verified

188
189 #[inline(always)]
190 fn write_64(&mut self, base: u64, offset: u64, bytes: [u8; 8]) -> core::result::Result<(), crate::Trap> {
191 let addr = checked_effective_addr::<8>(self.data.len(), base, offset)?;
192 self.data[addr..addr + 8].copy_from_slice(&bytes);
193 Ok(())
194 }
195
196 #[inline(always)]
197 fn write_128(&mut self, base: u64, offset: u64, bytes: [u8; 16]) -> core::result::Result<(), crate::Trap> {

Callers 1

storeMethod · 0.45

Calls 2

lenMethod · 0.45
copy_from_sliceMethod · 0.45

Tested by

no test coverage detected