code: public void setVersion(int version)
      {
          if (version < 0 || 255 < version)
          {
              throw new IllegalArgumentException("'version' is out of the valid range: " + version);
          }
  
          mVersion = version;
  
          getData()[VERSION_INDEX] = (byte)(version & 0xFF);
      }
docs: Set the version of the packet format of Bluetooth LE ucode Marker.
  
  @param version
  The version number. The value should be in the range
  from 0 to 255.
  
  @throws IllegalArgumentException
  The given value is out of the valid range.