Files
brk/crates/brk_vecs/src/variants/compressed/page.rs
2025-08-03 23:38:58 +02:00

20 lines
398 B
Rust

use zerocopy_derive::{FromBytes, Immutable, IntoBytes, KnownLayout};
#[derive(Debug, Clone, IntoBytes, Immutable, FromBytes, KnownLayout)]
#[repr(C)]
pub struct Page {
pub start: u64,
pub bytes: u32,
pub values: u32,
}
impl Page {
pub fn new(start: u64, bytes: u32, values: u32) -> Self {
Self {
start,
bytes,
values,
}
}
}