diff --git a/AK/DeprecatedString.h b/AK/DeprecatedString.h index 0b84762e5eb..c7e4aad7284 100644 --- a/AK/DeprecatedString.h +++ b/AK/DeprecatedString.h @@ -192,6 +192,12 @@ public: return (*m_impl)[i]; } + [[nodiscard]] ALWAYS_INLINE u8 byte_at(size_t i) const + { + VERIFY(!is_null()); + return bit_cast((*m_impl)[i]); + } + using ConstIterator = SimpleIterator; [[nodiscard]] constexpr ConstIterator begin() const { return ConstIterator::begin(*this); }