brk_vec 0.0.81

A storeable vec
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use zerocopy_derive::{FromBytes, Immutable, IntoBytes, KnownLayout};

#[derive(Debug, Clone, IntoBytes, Immutable, FromBytes, KnownLayout)]
pub struct CompressedPageMetadata {
    pub start: u64,
    pub bytes_len: u32,
    pub values_len: u32,
}

impl CompressedPageMetadata {
    pub fn new(start: u64, bytes_len: u32, values_len: u32) -> Self {
        Self {
            start,
            bytes_len,
            values_len,
        }
    }
}