Пример #1
0
        public void writeHalfFloat(float f)
        {
            int i = FileData.fromFloat(f, Endian == Endianness.Little);

            data.Add((byte)((i >> 8) & 0xFF));
            data.Add((byte)((i) & 0xFF));
        }
Пример #2
0
 public void writeHalfFloat(float f)
 {
     writeShort(FileData.fromFloat(f));
 }