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