Lines Matching refs:len
66 let len = core::cmp::min(buf.len(), buffer.len()); in read() localVariable
67 buf[..len].copy_from_slice(&buffer[..len]); in read()
69 let _ = buffer.split_off(len); in read()
71 (Ok(len), Endpoint::Inode(self.peer_inode.clone())) in read()
80 let len = peer_inode.inner().write_buffer(buf)?; in write() localVariable
81 Ok(len) in write()
100 let len = buf.len(); in write_buffer() localVariable
101 if buffer.capacity() - buffer.len() < len { in write_buffer()
106 Ok(len) in write_buffer()
177 let len = core::cmp::min(buf.len(), buffer.len()); in read() localVariable
178 buf[..len].copy_from_slice(&buffer[..len]); in read()
180 let _ = buffer.split_off(len); in read()
182 (Ok(len), Endpoint::Inode(self.peer_inode.clone())) in read()
191 let len = peer_inode.inner().write_buffer(buf)?; in write() localVariable
192 Ok(len) in write()
211 let len = buf.len(); in write_buffer() localVariable
212 if buffer.capacity() - buffer.len() < len { in write_buffer()
217 Ok(len) in write_buffer()