mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:27:35 +00:00
AK: Remove redundant compare() functions.
This commit is contained in:
parent
632ff01e17
commit
3aaece8733
4 changed files with 40 additions and 59 deletions
|
@ -71,6 +71,9 @@ public:
|
|||
Bytes bytes() { return { data(), size() }; }
|
||||
ReadonlyBytes bytes() const { return { data(), size() }; }
|
||||
|
||||
Span<u8> span() { return { data(), size() }; }
|
||||
Span<const u8> span() const { return { data(), size() }; }
|
||||
|
||||
u8* offset_pointer(int offset) { return m_data + offset; }
|
||||
const u8* offset_pointer(int offset) const { return m_data + offset; }
|
||||
|
||||
|
@ -159,6 +162,9 @@ public:
|
|||
Bytes bytes() { return m_impl ? m_impl->bytes() : nullptr; }
|
||||
ReadonlyBytes bytes() const { return m_impl ? m_impl->bytes() : nullptr; }
|
||||
|
||||
Span<u8> span() { return m_impl ? m_impl->span() : nullptr; }
|
||||
Span<const u8> span() const { return m_impl ? m_impl->span() : nullptr; }
|
||||
|
||||
u8* offset_pointer(int offset) { return m_impl ? m_impl->offset_pointer(offset) : nullptr; }
|
||||
const u8* offset_pointer(int offset) const { return m_impl ? m_impl->offset_pointer(offset) : nullptr; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue