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

Method read_u16_le

nodedb/src/engine/timeseries/reader.rs:70–73  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

68 }
69
70 fn read_u16_le(&mut self) -> Option<u16> {
71 let b = self.read_bytes(2)?;
72 Some(u16::from_le_bytes([b[0], b[1]]))
73 }
74
75 fn read_u32_le(&mut self) -> Option<u32> {
76 let b = self.read_bytes(4)?;

Callers 1

decode_tseg_headerFunction · 0.80

Calls 1

read_bytesMethod · 0.80

Tested by

no test coverage detected