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

AK: Add CircularDuplexStream class.

This commit is contained in:
asynts 2020-08-25 14:57:02 +02:00 committed by Andreas Kling
parent 8e08d9f70a
commit a82fead38a
4 changed files with 236 additions and 1 deletions

View file

@ -27,13 +27,15 @@
#pragma once
#include <AK/Assertions.h>
#include <AK/Forward.h>
#include <AK/StdLibExtras.h>
#include <AK/Types.h>
namespace AK {
template<typename T, size_t Capacity>
class CircularQueue {
friend CircularDuplexStream<Capacity>;
public:
CircularQueue()
{