|
|
std::size_t | size () const |
| | Return the number of archived entries.
|
| |
|
bool | empty () const |
| | Return whether the archive has no entries.
|
| |
|
std::size_t | logical_size_bytes () const |
| | Return the number of logical content bytes, excluding framing.
|
| |
|
WaveletTreeBuildType | build_type () const |
| | Return the wavelet-tree construction strategy.
|
| |
|
std::size_t | file_table_bytes () const |
| | Return serialized fixed-record bytes.
|
| |
|
std::size_t | path_storage_bytes () const |
| | Return serialized path-blob bytes.
|
| |
|
std::size_t | metadata_bytes () const |
| | Return framing, file-table, path, and alignment bytes.
|
| |
| std::optional< std::size_t > | find (std::string_view path) const |
| | Find an exact archive-relative path.
|
| |
| FileArchiveEntry | entry (std::size_t index) const |
| | Return metadata for an entry.
|
| |
| std::vector< std::byte > | extract (std::size_t index) const |
| | Reconstruct the complete byte content of one entry.
|
| |
| std::vector< std::byte > | extract_lines (std::size_t index, std::size_t left, std::size_t right) const |
| | Reconstruct zero-based half-open line range [left, right).
|
| |
template<class Impl>
class pixie::FileArchiveBase< Impl >
CRTP facade for file-archive lookup and extraction.
Impl must provide stable record and path views, a queryable byte wavelet tree whose symbols cover all logical content, the logical content size, construction type, and path-storage size. Views returned by an implementation must remain valid for the facade object's lifetime. Owning implementations own this state; read-only implementations may retain non-owning views whose backing storage must outlive the facade.
- Template Parameters
-
| Impl | Owning or read-only concrete archive implementation. |