vortex_zstd/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4pub use array::*;
5
6mod array;
7mod compute;
8
9#[cfg(test)]
10mod test;
11
12#[derive(Clone, prost::Message)]
13pub struct ZstdFrameMetadata {
14 #[prost(uint64, tag = "1")]
15 pub uncompressed_size: u64,
16 #[prost(uint64, tag = "2")]
17 pub n_values: u64,
18}
19
20#[derive(Clone, prost::Message)]
21pub struct ZstdMetadata {
22 // optional, will be 0 if there's no dictionary
23 #[prost(uint32, tag = "1")]
24 pub dictionary_size: u32,
25 #[prost(message, repeated, tag = "2")]
26 pub frames: Vec<ZstdFrameMetadata>,
27}