swap.state File Structure
Collaboration diagram for swap.state File Structure:
![](group__FileFormatSwapStateAPI.png)
Classes | |
class | StoreSwapLogHeader |
Detailed Description
Implementation Notes
- When writing an object to disk, we must first write the meta data. Store::PackSwapMeta() serializes that meta data into a character buffer that we can write.
- Note
- MemObject has a MemObject::swap_hdr_sz. This value is the size of that character buffer; the size of the swap file meta data. The StoreEntry has a member StoreEntry::swap_file_sz that represents the size of the disk file. Thus, the size of the object "content" is
- The swap file content includes the HTTP reply headers and the HTTP reply body (if any).
- When reading a swap file, Store::Unpack*SwapMeta*() functions iterate over stored swap meta data header fields and also extract the value for MemObject->swap_hdr_sz.
Definition: MemObject.h:33
Definition: Store.h:37
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products