mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
This commit is contained in:
parent
1c92e6ee9d
commit
63b11030f0
102 changed files with 206 additions and 206 deletions
|
@ -123,8 +123,8 @@ public:
|
|||
[[nodiscard]] Bytes bytes() { return { data(), size() }; }
|
||||
[[nodiscard]] ReadonlyBytes bytes() const { return { data(), size() }; }
|
||||
|
||||
[[nodiscard]] AK::Span<u8> span() { return { data(), size() }; }
|
||||
[[nodiscard]] AK::Span<u8 const> span() const { return { data(), size() }; }
|
||||
[[nodiscard]] AK::Bytes span() { return { data(), size() }; }
|
||||
[[nodiscard]] AK::ReadonlyBytes span() const { return { data(), size() }; }
|
||||
|
||||
[[nodiscard]] u8* offset_pointer(size_t offset) { return data() + offset; }
|
||||
[[nodiscard]] u8 const* offset_pointer(size_t offset) const { return data() + offset; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue