Navigation
API > API/Runtime > API/Runtime/NetCommon
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.
| Name | FPacketDataView |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Common/Public/Net/Common/Packets/PacketView.h |
| Include Path | #include "Net/Common/Packets/PacketView.h" |
Syntax
class FPacketDataView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPacketDataView
(
const uint8* InData, |
Constructs a view of packet data with bit-based size. | Net/Common/Packets/PacketView.h | |
FPacketDataView
(
const uint8* InData, |
Constructs a view of packet data with byte-based size. | Net/Common/Packets/PacketView.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CountBits | int32 | The size of the data in bits | Net/Common/Packets/PacketView.h | |
| Data | TArrayView< const uint8 > | View of the raw packet data | Net/Common/Packets/PacketView.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const uint8 * GetData() |
Net/Common/Packets/PacketView.h | ||
uint8 * GetMutableData() |
Net/Common/Packets/PacketView.h | ||
int32 NumBits() |
Net/Common/Packets/PacketView.h | ||
int32 NumBytes() |
Net/Common/Packets/PacketView.h |