docs: public static DirectBuffer allocate(int initialCapacity, int maxCapacity) {
      checkArgument(initialCapacity <= maxCapacity, "initial capacity cannot be greater than maximum capacity");
      return new DirectBuffer(DirectBytes.allocate((int) Math.min(Memory.Util.toPow2(initialCapacity), MAX_SIZE)), 0, initialCapacity, maxCapacity);
    }