|
libassetmap
1.0.0
Hash-table based archive format containing compressed data
|
1 #ifndef LIBASSETMAP_MEMMAPPEDARCHIVE_H
2 #define LIBASSETMAP_MEMMAPPEDARCHIVE_H
5 #include "IDecompress.h"
7 #include "IMemMapper.h"
9 #include "MemMappedBucket.h"
10 #include "MemMappedBucketEntry.h"
15 #include <string_view>
24 void LoadDictionary(Comp& comp) noexcept;
31 using difference_type = ptrdiff_t;
35 using iterator_category = std::forward_iterator_tag;
39 bool operator!=(
const Iterator& rhs)
const noexcept;
45 Iterator& operator++() noexcept;
121 [[nodiscard]] Iterator
begin() const noexcept;
125 [[nodiscard]] Iterator
end() const noexcept;
129 #endif // LIBASSETMAP_MEMMAPPEDARCHIVE_H
Definition: IDecompress.h:10
Definition: ICompress.h:10
Iterator end() const noexcept
Obtains an iterator to one-past-the-end as for C++ iterators.
Definition: IMemMapper.h:8
lam_size_t EmptyBuckets() const noexcept
Obtains the number of empty (unused) buckets in the archive.
lam_size_t BucketCount() const noexcept
Obtains the total number of buckets in the archive.
Definition: MemMappedBucket.h:10
lam_size_t DictionarySize() const noexcept
Obtains the size (in bytes) of the ICompressor's dictionary.
Definition: MemMappedArchive.h:18
Definition: MemMappedBucketEntry.h:15
MemMappedArchive(const std::filesystem::directory_entry &ent, const IHasher &hasher, IMemMapper &file, ICompress &comp, IDecompress *decomp=nullptr)
Constructs an instance for creating (optionally, reading) an archive.
Definition: DirectoryMetadata.h:65
MemMappedArchive(IMemMapper &file, IDecompress &comp, const IHasher &hasher)
Constructs a MemMappedArchive for reading from an archive You should construct a separate instance of...
Iterator begin() const noexcept
Obtains an iterator to the first bucket in the archive.