mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
AK: Implement Span which represents a contiguous sequence of objects.
This makes it possible to pass one object rather than pointer and length individually.
This commit is contained in:
parent
d43ddd6eb7
commit
ac9c2bc492
5 changed files with 277 additions and 8 deletions
|
@ -49,6 +49,12 @@ class FlyString;
|
|||
class Utf32View;
|
||||
class Utf8View;
|
||||
|
||||
template<typename T>
|
||||
class Span;
|
||||
|
||||
using ReadonlyBytes = Span<const u8>;
|
||||
using Bytes = Span<u8>;
|
||||
|
||||
template<typename T>
|
||||
class Atomic;
|
||||
|
||||
|
@ -113,6 +119,7 @@ using AK::Badge;
|
|||
using AK::Bitmap;
|
||||
using AK::BufferStream;
|
||||
using AK::ByteBuffer;
|
||||
using AK::Bytes;
|
||||
using AK::CircularQueue;
|
||||
using AK::DebugLogStream;
|
||||
using AK::DoublyLinkedList;
|
||||
|
@ -131,9 +138,11 @@ using AK::NonnullOwnPtr;
|
|||
using AK::NonnullRefPtr;
|
||||
using AK::Optional;
|
||||
using AK::OwnPtr;
|
||||
using AK::ReadonlyBytes;
|
||||
using AK::RefPtr;
|
||||
using AK::SharedBuffer;
|
||||
using AK::SinglyLinkedList;
|
||||
using AK::Span;
|
||||
using AK::String;
|
||||
using AK::StringBuilder;
|
||||
using AK::StringImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue