Delegate ChunkPrepare<TChunk>
The prepare step of a lambda-declared chunked system (ChunkedSystem<TChunk>(string, ChunkPrepare<TChunk>, ChunkExecute<TChunk>, string, string[], SystemPriority, Func<bool>, int, int, bool)): sizes plan with
Reset(int), fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk.
Runs on one thread, before any chunk is claimed.
public delegate int ChunkPrepare<TChunk>(ChunkTable<TChunk> plan) where TChunk : unmanaged
Parameters
planChunkTable<TChunk>- The prepare step of a lambda-declared chunked system (): sizes plan with , fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk. Runs on one thread, before any chunk is claimed.
Returns
- int
- The prepare step of a lambda-declared chunked system (): sizes plan with , fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk. Runs on one thread, before any chunk is claimed.
Type Parameters
TChunk
Constructors
ChunkPrepare(object, nint)
public ChunkPrepare(object @object, nint method)
Parameters
Methods
BeginInvoke(ChunkTable<TChunk>, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ChunkTable<TChunk> plan, AsyncCallback callback, object @object)
Parameters
planChunkTable<TChunk>callbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual int EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(ChunkTable<TChunk>)
public virtual int Invoke(ChunkTable<TChunk> plan)
Parameters
planChunkTable<TChunk>