@Override
  public boolean hasFreeNativeCapacity(int bufferSize) {
    return nativeBytesUsed.get() + bufferSize <= nativeCapacityBytes;
  }
@Override
  public boolean hasFreeNativeCapacity(int bufferSize)