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

Function reserved_bytes_are_zero

nodedb-wal/src/preamble.rs:208–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206
207 #[test]
208 fn reserved_bytes_are_zero() {
209 let p = SegmentPreamble::new_wal([0xFF; 4]);
210 let bytes = p.to_bytes();
211 assert_eq!(&bytes[12..16], &[0u8, 0, 0, 0]);
212 }
213}

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected