MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / skip_empty

Method skip_empty

api/src/io.rs:92–102  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

90
91impl IoVectorBufIo {
92 fn skip_empty(&mut self) -> AxResult<()> {
93 while self.start < self.inner.iovcnt {
94 let iov = self.inner.iovs.wrapping_add(self.start).vm_read()?;
95 if iov.iov_len as usize > self.offset {
96 break;
97 }
98 self.offset = 0;
99 self.start += 1;
100 }
101 Ok(())
102 }
103}
104
105impl Read for IoVectorBufIo {

Callers 2

readMethod · 0.80
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected