BCLog::LogRateLimiter::Stats::Consume

Updates internal accounting and returns true if enough available_bytes were remaining

Synopsis

Declared in <logging.h>

bool
Consume(uint64_t bytes);

Return Value

true if the bytes fit within the remaining budget.

Parameters

NameDescription
bytesThe number of bytes to consume.