pub fn get(ko: u64, offset: u32, mask: u64) -> u64Expand description
Reads a field from a key object record.
ยงExamples
use state_engine::common::bit;
let ko = 0b11u64 << bit::OFFSET_ROOT; // root index at offset 59
assert_eq!(bit::get(ko, bit::OFFSET_ROOT, bit::MASK_ROOT), 0b11);