Home
last modified time | relevance | path

Searched refs:last_newline_idx (Results 1 – 2 of 2) sorted by relevance

/external/crosvm/arch/src/
Dserial.rs155 let last_newline_idx = match parsed_str.rfind('\n') { in write() localVariable
161 match last_newline_idx { in write()
162 Some(last_newline_idx) => { in write()
163 for line in (self.buf[..last_newline_idx]).lines() { in write()
168 self.buf.drain(..=last_newline_idx); in write()
/external/crosvm/sys_util/src/
Dsyslog.rs437 if let Some(last_newline_idx) = self.buf.rfind('\n') { in write()
438 for line in self.buf[..last_newline_idx].lines() { in write()
442 self.buf.drain(..=last_newline_idx); in write()