MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / deserialize

Method deserialize

src/structures/mmap_tree/serialization.rs:12–16  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

10
11impl TreeDeserialization for i32 {
12 fn deserialize(data: &[u8]) -> Self {
13 let mut bytes = [0; 4];
14 bytes.copy_from_slice(&data[..4]);
15 i32::from_le_bytes(bytes)
16 }
17}
18
19impl TreeSerialization for i32 {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected