|
Haio 0.2.X
Homebrew Asset IO/CDN
|
#include <bucket.hpp>
Classes | |
| struct | Archive |
Public Member Functions | |
| ZipArchives (size_t maxUsage) | |
| std::shared_ptr< const Archive > | find (const std::string &key) |
| std::shared_ptr< const Archive > | keep (const std::string &key, std::vector< uint8_t > data, ZipIndex index) |
the archives themselves, kept apart from the response cache because what they hold is not an answer: a request for a second picture out of the same zip should not have to fetch it again, and a request for the same picture never reaches here at all, since the response cache already answered.
Definition at line 98 of file bucket.hpp.
| struct Haio::Cdn::Bucket::ZipArchives::Archive |
Definition at line 102 of file bucket.hpp.

| Class Members | ||
|---|---|---|
| vector< uint8_t > | data | |
| ZipIndex | index | |
|
explicit |
Definition at line 18 of file archives.cpp.
| std::shared_ptr< const ZipArchives::Archive > Haio::Cdn::Bucket::ZipArchives::find | ( | const std::string & | key | ) |
Definition at line 20 of file archives.cpp.
| std::shared_ptr< const ZipArchives::Archive > Haio::Cdn::Bucket::ZipArchives::keep | ( | const std::string & | key, |
| std::vector< uint8_t > | data, | ||
| ZipIndex | index ) |
Definition at line 28 of file archives.cpp.