Contents

class

SushiEngine::Logging::FormatBuffer

Appends text to caller-owned storage and records whether any was cut.

Declared in
engine/foundation/logging/include/SushiEngine/logging/format_into.hpp

Note

The storage is not null-terminated; view() carries the length.

Public Methods

FormatBuffer

Wraps storage without taking ownership.

append

Copies text up to the space left; marks the buffer cut on overflow.

append_character

Copies one character, or marks the buffer cut when it is full.

remaining

Returns the number of characters that still fit.

truncated

Returns true when an append did not fit.

finish

Overwrites as many trailing characters as fit, up to three, with '.'.

view

Returns the characters written so far.