public TemporaryDataStorage(Func<int, byte[]> acquireBuffer, Action<byte[]> releaseBuffer) { TemporaryDataStorage.Configure(); this.buffer = new TemporaryDataStorage.VirtualBuffer(TemporaryDataStorage.DefaultBufferBlockSize, TemporaryDataStorage.DefaultBufferMaximumSize, acquireBuffer != null ? acquireBuffer : TemporaryDataStorage.DefaultAcquireBuffer, releaseBuffer != null ? releaseBuffer : TemporaryDataStorage.DefaultReleaseBuffer); }
public VirtualBuffer(int blockSize, int maximumSize) { this = new TemporaryDataStorage.VirtualBuffer(blockSize, maximumSize, (Func<int, byte[]>) null, (Action<byte[]>) null); }