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

Function write_header

nodedb-spatial/src/wkb.rs:132–135  ·  view source on GitHub ↗
(buf: &mut Vec<u8>, wkb_type: u32)

Source from the content-addressed store, hash-verified

130}
131
132fn write_header(buf: &mut Vec<u8>, wkb_type: u32) {
133 buf.push(BYTE_ORDER_LE);
134 write_u32(buf, wkb_type);
135}
136
137fn write_u32(buf: &mut Vec<u8>, val: u32) {
138 buf.extend_from_slice(&val.to_le_bytes());

Callers 1

write_geometryFunction · 0.70

Calls 2

write_u32Function · 0.70
pushMethod · 0.45

Tested by

no test coverage detected