(&mut self, buf: &mut [u8])
| 108 | #[cfg(feature = "std")] |
| 109 | impl 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")] |