mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-10 14:19:10 -07:00
19 lines
440 B
Rust
19 lines
440 B
Rust
use zerocopy::{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,
|
|
}
|
|
}
|
|
}
|