update the parser with the number of lines already read by the underlying stream (#836)
This commit is contained in:
@@ -366,6 +366,11 @@ impl Stream {
|
||||
ptr as *const u8
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn lines_read(&mut self) -> usize {
|
||||
self.stream_inst.0.borrow_mut().lines_read
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn add_lines_read(&mut self, incr_num_lines_read: usize) {
|
||||
self.stream_inst.0.borrow_mut().lines_read += incr_num_lines_read;
|
||||
|
||||
Reference in New Issue
Block a user