UNetConnection::WriteBitsToSendBuffer

Appends the passed in data to the SendBuffer to be sent when FlushNet is called

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/NetConnection.h

Include

#include "Engine/NetConnection.h"

Source

/Engine/Source/Runtime/Engine/Private/NetConnection.cpp

Syntax

int32 WriteBitsToSendBuffer
(
    const uint8 * Bits,
    const int32 SizeInBits,
    const uint8 * ExtraBits,
    const int32 ExtraSizeInBits,
    EWriteBitsDataType DataType
)

Remarks

Appends the passed in data to the SendBuffer to be sent when FlushNet is called

Parameters

Parameter

Description

Bits

Data as bits to be appended to the send buffer

SizeInBits

Number of bits to append

ExtraBits

(optional) Second set of bits to be appended to the send buffer that need to send with the first set of bits

ExtraSizeInBits

(optional) Number of secondary bits to append

TypeOfBits

(optional) The type of data being written, for profiling and bandwidth tracking purposes

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