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

Function read_u16_be

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

Source from the content-addressed store, hash-verified

53
54#[inline(always)]
55fn read_u16_be(buf: &[u8], pos: usize) -> Option<u16> {
56 let bytes = buf.get(pos..pos + 2)?;
57 Some(u16::from_be_bytes([bytes[0], bytes[1]]))
58}
59
60#[inline(always)]
61fn read_u32_be(buf: &[u8], pos: usize) -> Option<u32> {

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