docs: static int getShort(final byte[] arr, final long off) throws IndexOutOfBoundsException {
          final int ioff = (int) off;
          if (ioff < 0 || ioff > arr.length - 2) {
              throw new IndexOutOfBoundsException();
          }
          return ((arr[ioff + 1] & 0xff) << 8) | (arr[ioff] & 0xff);
      }