docs: public static long getOffset(DataBuffer shapeInformation, int dim0, int dim1, int dim2) {
          int rank = rank(shapeInformation);
          if (rank != 3)
              throw new IllegalArgumentException(
                      "Cannot use this getOffset method on arrays of rank != 3 (rank is: " + rank + ")");
          return getOffsetUnsafe(shapeInformation, dim0, dim1, dim2);
      }