MCPcopy Create free account
hub / github.com/PLSysSec/wave / read_u32_pair

Method read_u32_pair

src/runtime.rs:302–309  ·  view source on GitHub ↗
(&self, start: usize)

Source from the content-addressed store, hash-verified

300 #[ensures(ctx_safe(self))]
301 #[ensures(trace_safe(trace, self))]
302 pub fn read_u32_pair(&self, start: usize) -> RuntimeResult<(u32, u32)> {
303 if !self.fits_in_lin_mem_usize(start, 8) {
304 return Err(Eoverflow);
305 }
306 let x1 = self.read_u32(start);
307 let x2 = self.read_u32(start + 4);
308 Ok((x1, x2))
309 }
310
311 /// write u16 to wasm linear memory
312 // Not thrilled about this implementation, but it works

Callers 3

wasi_sock_recvFunction · 0.80
wasi_sock_sendFunction · 0.80
parse_iovsFunction · 0.80

Calls 2

fits_in_lin_mem_usizeMethod · 0.80
read_u32Method · 0.80

Tested by

no test coverage detected