BCLog::LogRateLimiter::Stats

Keeps track of an individual source location and how many available bytes are left for logging from it.

Synopsis

Declared in <logging.h>

struct Stats;

Member Functions

NameDescription
Stats [constructor]Construct with the initial number of available bytes.
Consume Updates internal accounting and returns true if enough available_bytes were remaining

Data Members

NameDescription
m_available_bytes Remaining bytes
m_dropped_bytes Number of bytes that were consumed but didn't fit in the available bytes.