code: public static IntBuffer shapeOf(IntBuffer buffer) {
          Buffer buffer2 = (Buffer) buffer;
          IntBuffer ret = (IntBuffer) buffer2.position(1);
          return ret.slice();
      }
docs: Get the shape from
  the given int buffer
  @param buffer the buffer to get the shape information for
  @return