Orrery Terrain · OrreryTerrainCore module · member function
Native::FJoinStreamReader::
FillFromCache
ExperimentalAdd the bytes this joiner holds from its kept save to the file.
Declaration
EJoinCacheFill FillFromCache();- 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
- Any thread, only after TakeCacheFill answered true: a background task's work (disk, a hash of each code).
Description
A WholeSave stream: the load set, copied into memory so a load reads no disk, then every code. A HeldCodes stream: each code the server's index names that the kept save holds under the same hash and size and whose bytes hash to it; any other code stays out and the server sends it.
Returns
Ok; any other answer only for a WholeSave stream (the join must start again without a kept save) or a save with no readable index.
Note.
Any thread, only after TakeCacheFill answered true: a background task's work (disk, a hash of each code). Memory: the largest code, and the index while it is read.