Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

EncodeBrushMaskRecord

Experimental

Append the full BrushMask payload of Mask: its hash, its canonical size, then the smaller of the two codecs.

Declaration

void EncodeBrushMaskRecord(const FBrushMask& Mask, std::vector<uint8_t>& 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
Maskconst FBrushMask&——
Outstd::vector<uint8_t>&——
Note.

Pure, any thread. O(samples); allocates the coded bytes.