Пример #1
0
            public Session(DeterministicChunker parent, Action <ChunkInfo> callback)
            {
                _parent = parent;

                _pushBufferHandle = _parent._pushBufferPool.Get();
                _pushBuffer       = _pushBufferHandle.Value;

                _chunksSeenHandle = ChunksSeenPool.Get();
                _chunksSeen       = _chunksSeenHandle.Value;

                _callback = callback;
            }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public ManagedChunker(ChunkerConfiguration configuration)
 {
     _inner = new DeterministicChunker(configuration, new ManagedChunkerNonDeterministic(configuration));
 }