FPacketDataView

Represent a restricted view of packet data, with bit-based size, allowing data to be reassigned to point elsewhere, but not allowing the data being pointed to, to be modified.

Windows
MacOS
Linux

References

Module

NetCommon

Header

/Engine/Source/Runtime/Net/Common/Public/Net/Common/Packets/PacketView.h

Include

#include "Net/Common/Packets/PacketView.h"

Syntax

class FPacketDataView

Remarks

Represent a restricted view of packet data, with bit-based size, allowing data to be reassigned to point elsewhere, but not allowing the data being pointed to, to be modified.

Constructors

Name Description

Public function

FPacketDataView

(
    const uint8* InData,
    int32 InCountBits,
    ECountUnits::BitType
)

Constructs a view of packet data with bit-based size.

Public function

FPacketDataView

(
    const uint8* InData,
    int32 InCountBytes,
    ECountUnits::ByteType
)

Constructs a view of packet data with byte-based size.

Functions

Name Description

Public function Const

const uint8 ...

 

GetData()

Public function Const

uint8 *

 

GetMutableData()

Public function Const

int32

 

NumBits()

Public function Const

int32

 

NumBytes()

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