Exemple #1
0
 internal void Init(int minimumCapacity)
 {
     _offHeapBuffer.EnsureCapacity(BitUtil.FindNextPositivePowerOfTwo(minimumCapacity) + NativeHeaderSize);
     _pointer = (byte *)_offHeapBuffer._pointer + NativeHeaderSize;
     _length  = _offHeapBuffer.Length - NativeHeaderSize;
 }
Exemple #2
0
 internal void Init(int minimumCapacity)
 {
     _offHeapBuffer.EnsureCapacity(BitUtil.FindNextPositivePowerOfTwo(minimumCapacity));
     _pointer = _offHeapBuffer._pointer;
     _length  = _offHeapBuffer.Length;
 }