docs: public static IoBuffer allocate(int capacity, boolean direct) {
      if (capacity < 0) {
        throw new IllegalArgumentException("capacity: " + capacity);
      }
  
      return allocator.allocate(capacity, direct);
    }