mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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
Notes:
sideshowbarker
2024-07-17 03:10:07 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/6f059c9d60 Pull-request: https://github.com/SerenityOS/serenity/pull/21896
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…
Reference in a new issue