diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-12-08 22:44:46 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-31 04:44:17 -0700 |
commit | f12e81b74a0395022581af443982e8cffb9b5c71 (patch) | |
tree | 173a2ad49e18dd3243c93501d0bf20c7a6d766b2 /Userland | |
parent | 3454891d3877c41e3daf6ff4bf29c602643a897c (diff) | |
download | serenity-f12e81b74a0395022581af443982e8cffb9b5c71.zip |
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.
Diffstat (limited to 'Userland')
0 files changed, 0 insertions, 0 deletions