Lines Matching defs:read
32 buf: Vec<u8>, // Buffer for storing read bytes.
34 idx: usize, // A counter of all bytes that have been read.
68 // Try to read some bytes from io to fill buf.
74 return match self.io.read(self.buf.as_mut_slice()) {
89 // If there is not enough bytes in buf, try to read some bytes from io and
242 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
269 fn read(&mut self, _buf: &mut [u8]) -> std::io::Result<usize> {
287 fn read(&mut self, _buf: &mut [u8]) -> std::io::Result<usize> {
323 /// - If the end is not read, it returns `Ok(Some(..))`, and the index
324 /// is moved backward; if the end is read, it returns `Ok(None)`, and
359 /// - If the end is not read, it returns `Ok(Some(..))`; if the end is
360 /// read, it returns `Ok(None)`.
392 /// - If the end is not read, the index is moved backward; if the end is
393 /// read, the index is not moved.
430 /// - If `'\n'` is read, the line number will increase and the column
431 /// number will return to 1; if other characters are read, the line