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

Method offset

crates/tinywasm/src/reference.rs:84–88  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

82 }
83
84 fn offset(&self) -> crate::std::io::Result<usize> {
85 usize::try_from(self.position).map_err(|_| {
86 crate::std::io::Error::new(crate::std::io::ErrorKind::InvalidInput, "cursor position exceeds usize")
87 })
88 }
89
90 fn advance(&mut self, amount: usize) -> crate::std::io::Result<()> {
91 self.position = self.position.checked_add(amount as u64).ok_or_else(|| {

Callers 6

readMethod · 0.45
writeMethod · 0.45
execMethod · 0.45
exec_fma_storeMethod · 0.45
exec_load_local_valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected