LLDB mainline
|
DecodedCharBuffer stores the decoded contents of a single character. More...
Public Member Functions | |
DecodedCharBuffer (std::nullptr_t) | |
DecodedCharBuffer (const uint8_t *bytes, size_t size) | |
DecodedCharBuffer (const char *bytes, size_t size) | |
const uint8_t * | GetBytes () const |
size_t | GetSize () const |
Private Attributes | |
size_t | m_size = 0 |
uint8_t | m_data [MaxLength] = {0} |
Static Private Attributes | |
static constexpr unsigned | MaxLength = 16 |
DecodedCharBuffer stores the decoded contents of a single character.
It avoids managing memory on the heap by copying decoded bytes into an in-line buffer.
Definition at line 34 of file StringPrinter.cpp.
|
inline |
Definition at line 36 of file StringPrinter.cpp.
|
inline |
Definition at line 38 of file StringPrinter.cpp.
|
inline |
Definition at line 44 of file StringPrinter.cpp.
|
inline |
Definition at line 47 of file StringPrinter.cpp.
References m_data.
|
inline |
Definition at line 49 of file StringPrinter.cpp.
References m_size.
Referenced by GetPrintableImpl< StringElementType::ASCII >(), and GetPrintableImpl< StringElementType::UTF8 >().
|
private |
Definition at line 55 of file StringPrinter.cpp.
Referenced by DecodedCharBuffer(), and GetBytes().
|
private |
Definition at line 54 of file StringPrinter.cpp.
Referenced by GetSize().
|
staticconstexprprivate |
Definition at line 52 of file StringPrinter.cpp.
Referenced by DecodedCharBuffer().