18 #ifndef ION_BASE_MEMORYZIPSTREAM_H_
19 #define ION_BASE_MEMORYZIPSTREAM_H_
24 #include "base/integral_types.h"
60 void AddFile(
const std::string& filename,
const std::string& data);
76 std::unique_ptr<ZipStreamInfo> info_;
82 #endif // ION_BASE_MEMORYZIPSTREAM_H_
~MemoryZipStream() override
void AddFile(const std::string &filename, const DataVector &data)
Compresses and adds a vector of data to this, associating it with the passed filename.
const DataVector GetFileData(const std::string &filename)
Returns the file data for filename.
A MemoryZipStream represents ZIP data in memory; the data may represent one or more files or director...
Allocatable is an abstract base class for classes whose memory is managed by an Allocator.
MemoryZipStream()
Constructs an empty MemoryZipStream.
AllocVector< uint8 > DataVector
bool ContainsFile(const std::string &filename)
Returns whether this contains filename.
const DataVector & GetData() const
Gets the memory buffer backing this.