13template <SIZE_T HistorySize>
24 static_assert(HistorySize > 0,
"HistorySize must be > 0");
25 static_assert(HistorySize %
BitsPerWord == 0,
"InMaxHistorySize must be a modulo of the wordsize");
30#if WITH_AUTOMATION_WORKER
32 WordT* Data() {
return &Storage[0]; }
33 const WordT* Data()
const {
return &Storage[0]; }
59template<SIZE_T HistorySize>
62template<SIZE_T HistorySize>
65template<SIZE_T HistorySize>
68template<SIZE_T HistorySize>
71template <SIZE_T HistorySize>
77#if WITH_AUTOMATION_WORKER
78template <SIZE_T HistorySize>
89template <SIZE_T HistorySize>
95template <SIZE_T HistorySize>
99 const WordT ValueMask = 1u << (BitsPerWord - 1);
111template <SIZE_T HistorySize>
119 return (Storage[WordIndex] &
WordMask) != 0u;
122template <SIZE_T HistorySize>
125 NumWords = FPlatformMath::Min(NumWords, WordCount);
133template <SIZE_T HistorySize>
136 NumWords = FPlatformMath::Min(NumWords, WordCount);
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
Definition SequenceHistory.h:15
static constexpr SIZE_T BitsPerWord
Definition SequenceHistory.h:19
bool operator!=(const TSequenceHistory &Other) const
Definition SequenceHistory.h:47
bool operator==(const TSequenceHistory &Other) const
Definition SequenceHistory.h:45
static constexpr SIZE_T Size
Definition SequenceHistory.h:22
void AddDeliveryStatus(bool Delivered)
Definition SequenceHistory.h:96
static constexpr SIZE_T WordCount
Definition SequenceHistory.h:20
uint32 WordT
Definition SequenceHistory.h:17
void Write(FBitWriter &Writer, SIZE_T NumWords) const
Definition SequenceHistory.h:123
static constexpr SIZE_T MaxSizeInBits
Definition SequenceHistory.h:21
TSequenceHistory()
Definition SequenceHistory.h:72
bool IsDelivered(SIZE_T Index) const
Definition SequenceHistory.h:112
void Read(FBitReader &Reader, SIZE_T NumWords)
Definition SequenceHistory.h:134
void Reset()
Definition SequenceHistory.h:90
U16 Index
Definition radfft.cpp:71
Definition BitReader.h:25
Definition BitWriter.h:22
static UE_FORCEINLINE_HINT int32 Memcmp(const void *Buf1, const void *Buf2, SIZE_T Count)
Definition UnrealMemory.h:114