(&self)
| 28 | |
| 29 | impl FileLike for File { |
| 30 | fn len(&self) -> usize { |
| 31 | self.data.len() |
| 32 | } |
| 33 | fn read(&self, start: usize, buffer: &mut [u8]) -> Result<usize, syscalls::SyscallError> { |
| 34 | let end = cmp::min(start + buffer.len(), self.data.len()); |
| 35 | if start >= end { |
no outgoing calls
no test coverage detected