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