mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +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
|
@ -77,13 +77,13 @@ public:
|
|||
return m_high;
|
||||
}
|
||||
|
||||
Span<u8> bytes()
|
||||
Bytes bytes()
|
||||
{
|
||||
return Span<u8>(reinterpret_cast<u8*>(this), sizeof(R));
|
||||
return Bytes { reinterpret_cast<u8*>(this), sizeof(R) };
|
||||
}
|
||||
Span<u8 const> bytes() const
|
||||
ReadonlyBytes bytes() const
|
||||
{
|
||||
return Span<u8 const>(reinterpret_cast<u8 const*>(this), sizeof(R));
|
||||
return ReadonlyBytes { reinterpret_cast<u8 const*>(this), sizeof(R) };
|
||||
}
|
||||
|
||||
template<Unsigned U>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue