Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
Haio::Cdn::Bucket::ZipArchives Class Reference

#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)

Detailed Description

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.


Class Documentation

◆ Haio::Cdn::Bucket::ZipArchives::Archive

struct Haio::Cdn::Bucket::ZipArchives::Archive

Definition at line 102 of file bucket.hpp.

Collaboration diagram for Haio::Cdn::Bucket::ZipArchives::Archive:
Class Members
vector< uint8_t > data
ZipIndex index

Constructor & Destructor Documentation

◆ ZipArchives()

Haio::Cdn::Bucket::ZipArchives::ZipArchives ( size_t maxUsage)
explicit

Definition at line 18 of file archives.cpp.

Member Function Documentation

◆ find()

std::shared_ptr< const ZipArchives::Archive > Haio::Cdn::Bucket::ZipArchives::find ( const std::string & key)

Definition at line 20 of file archives.cpp.

◆ keep()

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.


The documentation for this class was generated from the following files: