MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / read_u32_be

Function read_u32_be

nodedb-query/src/msgpack_scan/reader.rs:61–64  ·  view source on GitHub ↗
(buf: &[u8], pos: usize)

Source from the content-addressed store, hash-verified

59
60#[inline(always)]
61fn read_u32_be(buf: &[u8], pos: usize) -> Option<u32> {
62 let bytes = buf.get(pos..pos + 4)?;
63 Some(u32::from_be_bytes([bytes[0], bytes[1], bytes[2], bytes[3]]))
64}
65
66#[inline(always)]
67fn read_u64_be(buf: &[u8], pos: usize) -> Option<u64> {

Callers 9

skip_value_depthFunction · 0.85
read_f64Function · 0.85
read_i64Function · 0.85
read_bin_advanceFunction · 0.85
read_u32_advanceFunction · 0.85
str_boundsFunction · 0.85
read_valueFunction · 0.85
map_headerFunction · 0.85
array_headerFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected