mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
AK: Add the InputBitStream concept
This will allow users to abstract away the endianness of the stream they are using.
This commit is contained in:
parent
869c7c9bab
commit
6f059c9d60
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Concepts.h>
|
||||
#include <AK/MaybeOwned.h>
|
||||
#include <AK/NumericLimits.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
|
@ -427,4 +428,11 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
concept InputBitStream = OneOf<T, BigEndianInputBitStream, LittleEndianInputBitStream>;
|
||||
|
||||
}
|
||||
|
||||
#if USING_AK_GLOBALLY
|
||||
using AK::InputBitStream;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue