mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
869c7c9bab
commit
6f059c9d60
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user