SwapMetaView.cc
Go to the documentation of this file.
30 debugs(20, DBG_IMPORTANT, "ERROR: Ignoring swap meta field with a deprecated type: " << int(type));
42 debugs(20, DBG_IMPORTANT, "ERROR: Malformed cache storage; ignoring swap meta field with an unexpected type: " << int(type));
52 debugs(20, DBG_IMPORTANT, "ERROR: Malformed cache storage; ignoring swap meta field with an invalid type: " << int(type));
77 assert(input > begin); // we consumed some input but stayed in the buffer range (the lower bound check)
90std::ostream &
Raw & minLevel(const int aLevel)
limit data printing to at least the given debugging level
Definition: Raw.h:27
a swap metadata field inside the buffer given to SwapMetaUnpacker
Definition: SwapMetaView.h:21
void checkExpectedLength(size_t) const
ensures that our fixed-size field value has the given expected length
Definition: SwapMetaView.cc:83
SwapMetaView()=default
Definition: SquidConfig.h:62
const size_t SwapMetaFieldValueLengthMax
Definition: SwapMeta.h:107
static void HandleBadRawType(const RawSwapMetaType type)
properly reports or rejects a problematic raw swap meta field type
Definition: SwapMetaView.cc:22
void SwapMetaExtract(Item &item, const char *&input, const void *end)
Definition: SwapMetaView.h:68
constexpr bool HonoredSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:197
constexpr bool ReservedSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:180
std::ostream & operator<<(std::ostream &os, const ParsingBuffer &b)
Definition: ParsingBuffer.h:119
constexpr bool DeprecatedSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:158
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63