mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
AK: Document that String{,Impl} contains NUL-terminator
This commit is contained in:
parent
417ca7594b
commit
2adc3c61a2
2 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ public:
|
|||
~StringImpl();
|
||||
|
||||
size_t length() const { return m_length; }
|
||||
// Includes NUL-terminator.
|
||||
const char* characters() const { return &m_inline_buffer[0]; }
|
||||
|
||||
ALWAYS_INLINE ReadonlyBytes bytes() const { return { characters(), length() }; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue