예제 #1
0
 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);
 }
예제 #2
0
 public VirtualBuffer(int blockSize, int maximumSize)
 {
     this = new TemporaryDataStorage.VirtualBuffer(blockSize, maximumSize, (Func<int, byte[]>) null, (Action<byte[]>) null);
 }