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

Method read_u16

rust/fory-core/src/buffer.rs:723–728  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

721
722 #[inline(always)]
723 pub fn read_u16(&mut self) -> Result<u16, Error> {
724 self.check_bound(2)?;
725 let result = LittleEndian::read_u16(&self.bf[self.cursor..self.cursor + 2]);
726 self.cursor += 2;
727 Ok(result)
728 }
729
730 // ============ UINT32 (TypeId = 11) ============
731

Callers 6

read_i16Method · 0.80
read_usizeMethod · 0.80
read_i64_payloadFunction · 0.80
read_u64_payloadFunction · 0.80
read_scalar_valueFunction · 0.80
skip_valueFunction · 0.80

Calls 1

check_boundMethod · 0.80

Tested by

no test coverage detected