mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
AK: Always inline FlyString::view()
This commit is contained in:
parent
d02e7b3811
commit
66f15c2e0c
Notes:
sideshowbarker
2024-07-18 16:51:28 +09:00
Author: https://github.com/awesomekling
Commit: 66f15c2e0c
3 changed files with 2 additions and 7 deletions
|
@ -43,6 +43,7 @@ public:
|
|||
const char* characters() const { return &m_inline_buffer[0]; }
|
||||
|
||||
ALWAYS_INLINE ReadonlyBytes bytes() const { return { characters(), length() }; }
|
||||
ALWAYS_INLINE StringView view() const { return { characters(), length() }; }
|
||||
|
||||
const char& operator[](size_t i) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue