Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

DecodeMaskUpload

Experimental

Read a MaskUpload payload, all of Size.

Declaration

ENetDecode DecodeMaskUpload(const uint8_t* Data, size_t Size, FNetMaskUpload& 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 payload.

Sizesize_t—

Its bytes.

OutFNetMaskUpload&—

The part; its Chunk points into Data.

Returns

Ok; Truncated (under the header), BadPayload (hash 0, an offer at an Offset other than 0), BadLength (a canonical size that is no mask's, a total out of range, a chunk over kNetMaskUploadChunkBytes or past the total). Out is unspecified unless Ok.

Note.

Pure, any thread.