public void Flush(IChunkStorage <T> chunkStorage) { using (var writer = chunkStorage.OpenForWrite()) { writer.Write(_array); writer.Complete(); } }
public FileChunkReference(long size, int count, IChunkStorage <T> chunkStorage, bool chunkWriter = false) { _chunkStorage = chunkStorage; TotalSize = size; Count = count; if (chunkWriter) { _chunkStorageWriter = chunkStorage.OpenForWrite(); } }