Read JSON objects from `buf`, returning the number of bytes read This method returns once `batch_size` objects have been parsed since the last call to [`Self::flush`], or `buf` is exhausted. Any remaining bytes should be included in the next call to [`Self::decode`] There is no requirement that `buf` contains a whole number of records, facilitating integration with arbitrary byte streams, such a
(&mut self, buf: &[u8])
| 470 | /// There is no requirement that `buf` contains a whole number of records, facilitating |
| 471 | /// integration with arbitrary byte streams, such as those yielded by [`BufRead`] |
| 472 | pub fn decode(&mut self, buf: &[u8]) -> Result<usize, ArrowError> { |
| 473 | self.tape_decoder.decode(buf) |
| 474 | } |
| 475 | |
| 476 | /// Serialize `rows` to this [`Decoder`] |
| 477 | /// |
no outgoing calls