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

Method read_u32

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

Source from the content-addressed store, hash-verified

731
732 #[inline(always)]
733 pub fn read_u32(&mut self) -> Result<u32, Error> {
734 self.check_bound(4)?;
735 let result = LittleEndian::read_u32(&self.bf[self.cursor..self.cursor + 4]);
736 self.cursor += 4;
737 Ok(result)
738 }
739
740 // ============ VAR_UINT32 (TypeId = 12) ============
741

Callers 6

read_i32Method · 0.80
read_i64_payloadFunction · 0.80
read_u64_payloadFunction · 0.80
read_scalar_valueFunction · 0.80
skip_valueFunction · 0.80
fory_read_dataMethod · 0.80

Calls 1

check_boundMethod · 0.80

Tested by

no test coverage detected