MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / reader

Method reader

src/ore/src/bytes.rs:135–137  ·  view source on GitHub ↗

Consumes `self` returning a type that implements [`io::Read`] and [`io::Seek`]. Note: [`Clone`]-ing a [`SegmentedBytes`] is cheap, so if you need to retain the original [`SegmentedBytes`] you should clone it. [`io::Read`]: std::io::Read [`io::Seek`]: std::io::Seek

(self)

Source from the content-addressed store, hash-verified

133 /// [`io::Read`]: std::io::Read
134 /// [`io::Seek`]: std::io::Seek
135 pub fn reader(self) -> SegmentedReader<N> {
136 SegmentedReader::new(self)
137 }
138}
139
140impl<const N: usize> Buf for SegmentedBytes<N> {

Callers 14

workflow_nightlyFunction · 0.45
_read_gcs_avroFunction · 0.45
bench_readerFunction · 0.45
get_readMethod · 0.45
test_emptyFunction · 0.45
test_io_readFunction · 0.45
test_io_read_multiFunction · 0.45
test_multiFunction · 0.45
test_last_segment_emptyFunction · 0.45
testFunction · 0.45

Calls

no outgoing calls

Tested by 8

test_emptyFunction · 0.36
test_io_readFunction · 0.36
test_io_read_multiFunction · 0.36
test_multiFunction · 0.36
test_last_segment_emptyFunction · 0.36
serve_with_triggerMethod · 0.36