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

Method read

crates/tinywasm/src/reference.rs:110–115  ·  view source on GitHub ↗
(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

108#[cfg(feature = "std")]
109impl crate::std::io::Read for MemoryCursor<'_> {
110 fn read(&mut self, buf: &mut [u8]) -> crate::std::io::Result<usize> {
111 let offset = self.offset()?;
112 let read = self.memory.inner.read(offset, buf);
113 self.advance(read)?;
114 Ok(read)
115 }
116}
117
118#[cfg(feature = "std")]

Callers 5

analyze.pyFile · 0.45
open_mode_optionsMethod · 0.45
build_importsFunction · 0.45
read_moreMethod · 0.45
save_csvMethod · 0.45

Calls 3

advanceMethod · 0.80
instanceMethod · 0.80
offsetMethod · 0.45

Tested by 1

save_csvMethod · 0.36