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

Function read_u8

nodedb-spatial/src/wkb.rs:230–237  ·  view source on GitHub ↗
(data: &[u8], cursor: &mut usize)

Source from the content-addressed store, hash-verified

228}
229
230fn read_u8(data: &[u8], cursor: &mut usize) -> Option<u8> {
231 if *cursor >= data.len() {
232 return None;
233 }
234 let val = data[*cursor];
235 *cursor += 1;
236 Some(val)
237}
238
239fn read_u32(data: &[u8], cursor: &mut usize, is_le: bool) -> Option<u32> {
240 if *cursor + 4 > data.len() {

Callers 1

read_geometryFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected