mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
AK: Add CircularBuffer
The class is very similar to `CircularDuplexStream` in its behavior. Main differences are that `CircularBuffer`: - does not inherit from `AK::Stream` - uses `ErrorOr` for its API - is heap allocated (and OOM-Safe) This patch also add some tests.
This commit is contained in:
parent
3454891d38
commit
f12e81b74a
6 changed files with 488 additions and 0 deletions
|
@ -18,6 +18,7 @@ class ByteBuffer;
|
|||
|
||||
class Bitmap;
|
||||
using ByteBuffer = Detail::ByteBuffer<32>;
|
||||
class CircularBuffer;
|
||||
class Error;
|
||||
class GenericLexer;
|
||||
class IPv4Address;
|
||||
|
@ -155,6 +156,7 @@ using AK::Badge;
|
|||
using AK::Bitmap;
|
||||
using AK::ByteBuffer;
|
||||
using AK::Bytes;
|
||||
using AK::CircularBuffer;
|
||||
using AK::CircularDuplexStream;
|
||||
using AK::CircularQueue;
|
||||
using AK::DeprecatedString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue