1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:07:44 +00:00

AK: Add an abstraction over multiple disjoint buffers

DisjointChunks<T> provides a nice interface over multiple sequential
Vector<T>'s, allowing the user to iterate over/index into/slice from
said buffers as if they were a single contiguous buffer.
To work with views on such objects, DisjointSpans<T> is provided, which
has the same behaviour but does not own the underlying objects.
This commit is contained in:
Ali Mohammad Pur 2021-09-13 23:38:42 +04:30 committed by Ali Mohammad Pur
parent 910de95e7a
commit ccb53c64e9
3 changed files with 430 additions and 0 deletions

View file

@ -17,6 +17,7 @@ set(AK_TEST_SOURCES
TestCircularDuplexStream.cpp
TestCircularQueue.cpp
TestComplex.cpp
TestDisjointChunks.cpp
TestDistinctNumeric.cpp
TestDoublyLinkedList.cpp
TestEndian.cpp