public JobHandle CollectElementsToRead(out NativeList <int> batch2Read, out NativeCounter elementCount, Allocator allocator, JobHandle dependsOn = default) { batch2Read = new NativeList <int>(BlockChainCount, allocator); elementCount = new NativeCounter(allocator); return(new CollectElementsToReadJob() { BlockChains = BlockChains, BatchIDs = batch2Read.AsParallelWriter(), ElementCounter = elementCount, }.ScheduleBatch(BlockChainCount, 4, dependsOn)); }
public JobHandle CollectElementsToRead(out NativeList <int> batch2Read, out NativeCounter elementCount, Allocator allocator, JobHandle dependsOn = default) => mParallelBuffer.CollectElementsToRead(out batch2Read, out elementCount, allocator, dependsOn);