mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
AK: Add CircularDuplexStream class.
This commit is contained in:
parent
8e08d9f70a
commit
a82fead38a
Notes:
sideshowbarker
2024-07-19 03:07:07 +09:00
Author: https://github.com/asynts
Commit: a82fead38a
Pull-request: https://github.com/SerenityOS/serenity/pull/3309
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/stelar7
4 changed files with 236 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue