Example #1
0
 internal InstrumentedUnpooledUnsafeDirectByteBuffer(
     UnpooledByteBufferAllocator alloc, int initialCapacity, int maxCapacity)
     : base(alloc, initialCapacity, maxCapacity)
 {
     ((UnpooledByteBufferAllocator)this.Allocator).IncrementDirect(initialCapacity);
 }
 internal InstrumentedUnpooledHeapByteBuffer(
     UnpooledByteBufferAllocator alloc, int initialCapacity, int maxCapacity)
     : base(alloc, initialCapacity, maxCapacity)
 {
     ((UnpooledByteBufferAllocator)Allocator).IncrementHeap(initialCapacity);
 }