Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · member function

Native::FJoinStreamWriter::

TakeHeldCodes

Experimental

Take the joiner's answer, once: the stream then frames only the codes the joiner does not hold.

Declaration

bool TakeHeldCodes(const uint8_t* Answer, size_t Size);
Header
#include "Native/Net/NetJoin.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
Game thread, after a successful Prepare.

Parameters

NameTypeDefaultMeaning
Answerconst uint8_t*—

FJoinStreamReader::CacheAnswer's bytes, as they arrived.

Sizesize_t—

Bytes of Answer.

Returns

false, changing nothing, when this is no HeldCodes stream, an answer was already taken, or the answer does not fit this save: its size, its FileHash, its tile count or a bit past the last tile.

Note.

Game thread, after a successful Prepare. It only queues: the next Produce applies it.