class PanicBuffer
Defined at line 17 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
A fixed-size, NUL-terminated buffer for storing formatted panic/assert messages.
While this buffer is safe for concurrent use by multiple threads, concurrent use may result in
message loss or (logical) message corruption.
Public Members
static const size_t kMaxSize
Public Methods
void Append (ktl::string_view s)
Append |s| to the buffer.
Silently drops data if the buffer is full.
TODO(maniscalco): Given that the formatted message arguments are more valuable than the format
string, consider giving this class circular buffer semantics.
Defined at line 13 of file ../../zircon/kernel/lib/crashlog/panic_buffer.cc
void PanicBuffer ()
Defined at line 19 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
void PanicBuffer (const PanicBuffer & )
Defined at line 20 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
PanicBuffer & operator= (const PanicBuffer & )
Defined at line 21 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
void PanicBuffer (PanicBuffer && )
Defined at line 22 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
PanicBuffer & operator= (PanicBuffer && )
Defined at line 23 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
const char * c_str ()
Returns a pointer to a NUL-terminated C string.
Defined at line 43 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h
size_t size ()
The current size of the panic buffer as a string.
Defined at line 46 of file ../../zircon/kernel/lib/crashlog/include/lib/crashlog/panic_buffer.h