We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fcd64 commit 7822b8aCopy full SHA for 7822b8a
lldb/source/DataFormatters/StringPrinter.cpp
@@ -30,9 +30,7 @@ using StringElementType = StringPrinter::StringElementType;
30
/// DecodedCharBuffer stores the decoded contents of a single character. It
31
/// avoids managing memory on the heap by copying decoded bytes into an in-line
32
/// buffer.
33
-struct DecodedCharBuffer {
34
- static constexpr unsigned MaxLength = 16;
35
-
+class DecodedCharBuffer {
36
public:
37
DecodedCharBuffer(std::nullptr_t) {}
38
@@ -50,6 +48,8 @@ struct DecodedCharBuffer {
50
48
size_t GetSize() const { return m_size; }
51
49
52
private:
+ static constexpr unsigned MaxLength = 16;
+
53
size_t m_size = 0;
54
uint8_t m_data[MaxLength] = {0};
55
};
0 commit comments