コード例 #1
0
        /// <summary>
        /// Reads a 32-bit floating point number from the message.
        /// </summary>
        public float ReadSingle()
        {
            SingleToUIntUnion singleToUIntUnion = new SingleToUIntUnion();

            singleToUIntUnion.UIntValue = this.ReadUInt32();
            return(singleToUIntUnion.SingleValue);
        }
コード例 #2
0
        /// <summary>
        /// Writes a 32-bit floating point number to the message.
        /// </summary>
        public void Write(float value)
        {
            SingleToUIntUnion singleToUIntUnion = new SingleToUIntUnion()
            {
                SingleValue = value,
            };

            this.Write(singleToUIntUnion.UIntValue);
        }