예제 #1
0
 public void Free(IBuffer buffer)
 {
     allBuffers.TryRemove(buffer, out _);
     memoryManager.ReleaseBytes(buffer.Capacity);
 }
예제 #2
0
 public void ReleaseBytes(long amount)
 {
     Interlocked.Add(ref currentSize, -amount);
     underlyingManager?.ReleaseBytes(amount);
 }