ReverseBits

Reverses the order of the bits of a value.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h

Include

#include "Templates/UnrealTemplate.h"

Syntax

template<typename T>
TEnableIf< TAreTypesEqual< T, uint32 >::Value, T >::Type ReverseBits
(
    T Bits
)

Remarks

Reverses the order of the bits of a value. This is an TEnableIf'd template to ensure that no undesirable conversions occur. Overloads for other types can be added in the same way.

Returns

The bit-swapped value.

Parameters

Parameter

Description

Bits

The value to bit-swap.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss