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)

Choose your operating system:

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