FBitWriter::WriteIntWrapped

Serializes the specified Value, but does not bounds check against ValueMax; instead, it will wrap around if the value exceeds ValueMax (this differs from SerializeInt, which clamps)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/BitWriter.h

Include

#include "Serialization/BitWriter.h"

Source

/Engine/Source/Runtime/Core/Private/Serialization/BitWriter.cpp

Syntax

void WriteIntWrapped
(
    uint32 Value,
    uint32 ValueMax
)

Remarks

Serializes the specified Value, but does not bounds check against ValueMax; instead, it will wrap around if the value exceeds ValueMax (this differs from SerializeInt, which clamps)

Parameters

Parameter

Description

Value

The value to serialize

ValueMax

The maximum value to write; wraps Value if it exceeds this

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