Lines Matching refs:buf
78 pub fn check_rw_param(&self, len: usize, buf: &[u8]) -> Result<(), SystemError> { in check_rw_param()
79 if len > buf.len() { in check_rw_param()
86 pub fn input(&self, buf: &[u8]) -> Result<usize, SystemError> { in input()
87 let r: Result<usize, TtyError> = self.core.input(buf, false); in input()
146 buf: &mut [u8], in read_at()
156 self.check_rw_param(len, buf)?; in read_at()
159 let r: Result<usize, TtyError> = self.core.read_stdin(&mut buf[0..len], true); in read_at()
180 buf: &[u8], in write_at()
191 self.check_rw_param(len, buf)?; in write_at()
195 self.core.stdout(&buf[0..len], true) in write_at()
197 self.core.stderr(&buf[0..len], true) in write_at()
241 let mut buf = [0u8; 512]; in sync() localVariable
242 let r: Result<usize, TtyError> = self.core.output(&mut buf[0..511], false); in sync()
259 for x in buf { in sync()