MCPcopy Create free account
hub / github.com/apache/fory / read_bytes

Method read_bytes

rust/fory-core/src/buffer.rs:612–617  ·  view source on GitHub ↗
(&mut self, len: usize)

Source from the content-addressed store, hash-verified

610
611 #[inline(always)]
612 pub fn read_bytes(&mut self, len: usize) -> Result<&[u8], Error> {
613 self.check_bound(len)?;
614 let result = &self.bf[self.cursor..self.cursor + len];
615 self.move_next(len);
616 Ok(result)
617 }
618
619 #[inline(always)]
620 pub fn reset_cursor_to_here(&self) -> impl FnOnce(&mut Self) {

Callers 15

file_roundtripFunction · 0.45
file_roundtrip_auto_idFunction · 0.45
file_roundtrip_exampleFunction · 0.45
file_roundtrip_monsterFunction · 0.45
file_roundtrip_containerFunction · 0.45
file_roundtrip_treeFunction · 0.45
file_roundtrip_graphFunction · 0.45
read_decimal_unscaledFunction · 0.45

Calls 2

check_boundMethod · 0.80
move_nextMethod · 0.80

Tested by

no test coverage detected