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

Method read_u8

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

Source from the content-addressed store, hash-verified

63 }
64
65 fn read_u8(&mut self) -> Option<u8> {
66 let b = self.read_bytes(1)?;
67 Some(b[0])
68 }
69
70 fn read_u16_le(&mut self) -> Option<u16> {
71 let b = self.read_bytes(2)?;

Callers 15

readMethod · 0.80
readMethod · 0.80
readMethod · 0.80
skip_fieldsFunction · 0.80
read_u8_fieldFunction · 0.80
read1_strFunction · 0.80
read2_strFunction · 0.80
read2_u32Function · 0.80
read2_u64Function · 0.80
read_string_vecFunction · 0.80
read_fan_outFunction · 0.80

Calls 1

read_bytesMethod · 0.80

Tested by

no test coverage detected