9#ifndef SQUID_SRC_STORESWAPLOGDATA_H
10#define SQUID_SRC_STORESWAPLOGDATA_H
36#include "mem/forward.h"
54 void set(uint32_t f1, uint32_t f2, uint32_t f3);
57 void set(int32_t f1, uint64_t f2);
60 std::ostream &
print(std::ostream &os)
const;
std::ostream & operator<<(std::ostream &os, const SwapChecksum24 &sum)
unsigned char key[SQUID_MD5_DIGEST_LENGTH]
MEMPROXY_CLASS(StoreSwapLogData)
int64_t SwappedTime
type to use for storing time-related members; must be signed
bool sane() const
consistency self-check: whether the data appears to make sense
void finalize()
call this before storing the log entry
maintains a 24-bit checksum over integer fields
void set(uint32_t f1, uint32_t f2, uint32_t f3)
compute and store checksum based on three 32bit integers
bool operator!=(const SwapChecksum24 &o) const
bool operator==(const SwapChecksum24 &o) const
std::ostream & print(std::ostream &os) const
#define SQUID_MD5_DIGEST_LENGTH