Esempio n. 1
0
        /**
         * float型(4バイト書き込み)
         * @param n
         * @throws IOException
         */
        public void WriteFloat(float f)
        {
            Bit32Change ch = new Bit32Change();
            int         n  = ch.FloatToRawIntBits(f);

            this.WriteInt(n);
        }
Esempio n. 2
0
        /// <summary>
        /// float型(4バイト書き込み)
        /// </summary>
        /// <param name="f">float型の少数値</param>
        public unsafe void WriteFloat(float f)
        {
            if (m_isBigEndian)
            {
                WriteByte(&f, 4); return;
            }
            Bit32Change ch = new Bit32Change();
            int         n  = ch.FloatToRawIntBits(f);

            this.WriteInt(n);
        }