pub fn from_bytes(buffer: &[u8; 40]) -> Head {
        Head {
            roots: IndexRoots {
                eavt_root: PageId(u64_from_le_bytes(slice_8(&buffer[ 0.. 8]))),
                aevt_root: PageId(u64_from_le_bytes(slice_8(&buffer[ 8..16]))),
                avet_root: PageId(u64_from_le_bytes(slice_8(&buffer[16..24]))),
            },
            id_gen: IdGen {
                next_even: u64_from_le_bytes(slice_8(&buffer[24..32])),
                next_odd: u64_from_le_bytes(slice_8(&buffer[32..40])),
            },
        }
    }
/// Deserialize a head from bytes.
Deserialize a head from bytes.
Deserialize a head from bytes .
pub fn from_bytes(buffer: &[u8; 40]) -> Head {
        Head {
            roots: IndexRoots {
                eavt_root: PageId(u64_from_le_bytes(slice_8(&buffer[ 0.. 8]))),
                aevt_root: PageId(u64_from_le_bytes(slice_8(&buffer[ 8..16]))),
                avet_root: PageId(u64_from_le_bytes(slice_8(&buffer[16..24]))),
            },
            id_gen: IdGen {
                next_even: u64_from_le_bytes(slice_8(&buffer[24..32])),
                next_odd: u64_from_le_bytes(slice_8(&buffer[32..40])),
            },
        }
    }
pub fn from_bytes ( buffer : & [ u8 ; 40 ] ) -> Head { Head { roots : IndexRoots { eavt_root : PageId ( u64_from_le_bytes ( slice_8 ( & buffer [ 0 .. 8 ] ) ) ) , aevt_root : PageId ( u64_from_le_bytes ( slice_8 ( & buffer [ 8 .. 16 ] ) ) ) , avet_root : PageId ( u64_from_le_bytes ( slice_8 ( & buffer [ 16 .. 24 ] ) ) ) , } , id_gen : IdGen { next_even : u64_from_le_bytes ( slice_8 ( & buffer [ 24 .. 32 ] ) ) , next_odd : u64_from_le_bytes ( slice_8 ( & buffer [ 32 .. 40 ] ) ) , } , } }
Deserialize a head from bytes.
Deserialize a head from bytes .
buffer
&[u8; 40]
buffer
&[u8; 40]