Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · class

Native::

FJoinCache

Experimental

A save a client kept from an earlier join, opened for a later join to take bytes from: its index by code hash.

Declaration

class FJoinCache
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
Tier 1, immutable once open; the file must be thread-safe, as every ITerrainSaveFile.

Description

Nothing in it is trusted. A join takes a code only when its bytes hash to what the server's index says, and a whole save only when the server's head names its FileHash, and every byte is still hashed at the join's last check.

Tier 1, immutable once open; the file must be thread-safe, as every ITerrainSaveFile.

Functions

  • Openstatic

    Read a kept save's header, directory, index and trailer.

  • FileHash

    The save's trailer (FTerrainSaveInfo::FileHash): what the Hello names.

  • Size

    Bytes of the save.

  • Codes

    Non-empty sculpt codes in the save.

  • File
  • Find

    Where a code with this hash and size sits in the save.