code: public static int stride(DataBuffer buffer, int dimension) {
          int rank = rank(buffer);
          if (dimension >= rank)
              throw new IllegalArgumentException("Invalid dimension " + dimension + " for rank " + rank + " array");
          return buffer.getInt(1 + rank + dimension);
      }
docs: Get the stride of the specified dimension
  @param buffer       The buffer to get the stride from
  @param dimension    The dimension to get.
  @return             The stride of the specified dimension