AsmJit
Low-Latency Machine Code Generation
Logger that stores everything in an internal string buffer.
Create new StringLogger
.
Destroys the StringLogger
.
Returns the content of the logger as String.
It can be moved, if desired.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns aggregated logger data as char*
pointer.
The pointer is owned by StringLogger
, it can't be modified or freed.
Returns size of the data returned by data()
.
Clears the accumulated logger data.
SIZE_MAX
)overridenoexcept◆ Logs str
- must be reimplemented.
The function can accept either a null terminated string if size
is SIZE_MAX
or a non-null terminated string of the given size
. The function cannot assume that the data is null terminated and must handle non-null terminated inputs.
Reimplemented from asmjit::Logger.
Logger data as string.