Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

DecodeNetRecord

Experimental

Read one record written by EncodeNetRecord, all of Size and nothing more.

Declaration

ENetDecode DecodeNetRecord(const uint8_t* Data, size_t Size, FNetRecordView& Out);
Header
#include "Native/Net/NetRecord.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Pure, any thread.

Parameters

NameTypeDefaultMeaning
Dataconst uint8_t*—

The encoded record.

Sizesize_t—

The record's size in bytes.

OutFNetRecordView&—

On Ok, the record; its Payload points into Data.

Returns

Ok, or why the bytes are refused (Out unspecified).

Note.

Pure, any thread.