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

Function read_f64_float32

nodedb-query/src/msgpack_scan/reader.rs:592–598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

590
591 #[test]
592 fn read_f64_float32() {
593 // json! always produces f64, so test float32 with raw bytes
594 // float32 tag (0xca) + 1.5 in IEEE 754 big-endian
595 let buf = [0xca, 0x3f, 0xc0, 0x00, 0x00];
596 let val = read_f64(&buf, 0).unwrap();
597 assert!((val - 1.5).abs() < 1e-6);
598 }
599
600 #[test]
601 fn skip_empty_containers() {

Callers

nothing calls this directly

Calls 1

read_f64Function · 0.70

Tested by

no test coverage detected