MCPcopy Create free account
hub / github.com/apache/datafusion / fill_buf

Method fill_buf

datafusion/datasource-json/src/utils.rs:357–362  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

355
356impl<R: Read> BufRead for JsonArrayToNdjsonReader<R> {
357 fn fill_buf(&mut self) -> std::io::Result<&[u8]> {
358 if self.output_pos >= self.output_filled {
359 self.fill_output_buffer()?;
360 }
361 Ok(&self.output_buffer[self.output_pos..self.output_filled])
362 }
363
364 fn consume(&mut self, amt: usize) {
365 self.output_pos = std::cmp::min(self.output_pos + amt, self.output_filled);

Callers 1

Calls 1

fill_output_bufferMethod · 0.80

Tested by 1