size_t InMemorySize() const noexcept
size_t Populate(std::string_view name, const uint8_t *ptr, size_t len) noexcept
Initialises this entry by compressing and writing the input data to ptr.
MemMappedBucketEntry(std::nullptr_t)
Constructs an instance not pointing to any data.
MemMappedBucketEntry(uint8_t *data, IDecompress &decomp)
Constructor to reference an existing entry for reading.
std::pair< std::unique_ptr< uint8_t[]>, size_t > Retrieve()
Allocates and returns the decompressed data and its size.
lam_size_t DecompressedSize() const noexcept
Obtains the size that would be required to fully decompress.
size_t MakeNull() noexcept
Initializes this entry to a size of zero and an empty name.
Definition: MemMappedBucketEntry.h:15
std::string_view Name() const noexcept
Obtains the name of this entry.
lam_size_t FileSize() const noexcept
Obtains the (compressed) size of this entry's file.
MemMappedBucketEntry(uint8_t *data, ICompress &comp)
Constructor to reference available space for writing.