docs: public static final void writeShort(short value, byte[] array, int offset)
      {
          if (array.length < offset + 2)
          {
              throw new IllegalArgumentException("no room in array");
          }
          array[offset] = (byte) (value >> 8);
          array[offset + 1] = (byte) (value & 0xff);
      }