void_core/shard/mod.rs
1//! Shard storage for void
2//!
3//! Shards are opaque zstd-compressed blobs of concatenated file contents.
4//! File indexing is handled by the TreeManifest, not the shard itself.
5//! Shards are like filesystem blocks — no headers, no metadata.
6
7mod reader;
8mod writer;
9
10pub use reader::ShardBody;
11// Internal: used by DecryptedShard::decompress() in crypto/reader.rs
12pub(crate) use reader::decompress_shard_body;
13pub use writer::{
14 calculate_padded_size, read_padding_info, PaddingStrategy, ShardWriter, DEFAULT_BUCKETS,
15};