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

Name

Description

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

Name

Description

m_available_bytes

Remaining bytes

m_dropped_bytes

Number of bytes that were consumed but didn't fit in the available bytes.

Created with MrDocs