(bytes: &[u8; 24])
| 551 | /// Decode branch data from 24 bytes. |
| 552 | #[inline] |
| 553 | pub fn decode_branch_value(bytes: &[u8; 24]) -> SerializedBranch { |
| 554 | let trunk_id = decode_trunk_id(bytes[0..12].try_into().unwrap()); |
| 555 | let state = decode_branch_state(bytes[12]); |
| 556 | let line_hash = u64::from_le_bytes(bytes[16..24].try_into().unwrap()); |
| 557 | SerializedBranch { |
| 558 | trunk_id, |
| 559 | state, |
| 560 | line_hash, |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | // Leaf Value Encoding/Decoding (22 bytes) |
| 565 |