public boolean setValue(int value, @IntFormat int formatType, @IntRange(from = 0) int offset) {
		final int len = offset + getTypeLen(formatType);
		if (mValue == null) mValue = new byte[len];
		if (len > mValue.length) return false;

		switch (formatType) {
			case FORMAT_SINT8:
				value = intToSignedBits(value, 8);
				// Fall-through intended
			case FORMAT_UINT8:
				mValue[offset] = (byte) (value & 0xFF);
				break;

			case FORMAT_SINT16_LE:
				value = intToSignedBits(value, 16);
				// Fall-through intended
			case FORMAT_UINT16_LE:
				mValue[offset++] = (byte) (value & 0xFF);
				mValue[offset] = (byte) ((value >> 8) & 0xFF);
				break;

			case FORMAT_SINT16_BE:
				value = intToSignedBits(value, 16);
				// Fall-through intended
			case FORMAT_UINT16_BE:
				mValue[offset++] = (byte) ((value >> 8) & 0xFF);
				mValue[offset] = (byte) (value & 0xFF);
				break;

			case FORMAT_SINT24_LE:
				value = intToSignedBits(value, 24);
				// Fall-through intended
			case FORMAT_UINT24_LE:
				mValue[offset++] = (byte) (value & 0xFF);
				mValue[offset++] = (byte) ((value >> 8) & 0xFF);
				mValue[offset] = (byte) ((value >> 16) & 0xFF);
				break;

			case FORMAT_SINT24_BE:
				value = intToSignedBits(value, 24);
				// Fall-through intended
			case FORMAT_UINT24_BE:
				mValue[offset++] = (byte) ((value >> 16) & 0xFF);
				mValue[offset++] = (byte) ((value >> 8) & 0xFF);
				mValue[offset] = (byte) (value & 0xFF);
				break;

			case FORMAT_SINT32_LE:
				value = intToSignedBits(value, 32);
				// Fall-through intended
			case FORMAT_UINT32_LE:
				mValue[offset++] = (byte) (value & 0xFF);
				mValue[offset++] = (byte) ((value >> 8) & 0xFF);
				mValue[offset++] = (byte) ((value >> 16) & 0xFF);
				mValue[offset] = (byte) ((value >> 24) & 0xFF);
				break;

			case FORMAT_SINT32_BE:
				value = intToSignedBits(value, 32);
				// Fall-through intended
			case FORMAT_UINT32_BE:
				mValue[offset++] = (byte) ((value >> 24) & 0xFF);
				mValue[offset++] = (byte) ((value >> 16) & 0xFF);
				mValue[offset++] = (byte) ((value >> 8) & 0xFF);
				mValue[offset] = (byte) (value & 0xFF);
				break;

			default:
				return false;
		}
		return true;
	}
Set the locally stored value of this data.
<p>See {@link #setValue(byte[])} for details.

@param value      New value for this data
@param formatType Integer format type used to transform the value parameter
@param offset     Offset at which the value should be placed
@return true if the locally stored value has been set
ble/src/main/java/no/nordicsemi/android/ble/data/MutableData.java