Exemple #1
0
        public static void WriteValueF64(this Stream stream, double value, Endian endian)
        {
            var rawValue = new Overlap <double, ulong>(value).AsB;

            if (ShouldSwap(endian) == true)
            {
                rawValue = rawValue.Swap();
            }
            stream.WriteValueU64(rawValue, endian);
        }
Exemple #2
0
        public static void WriteValueF32(this Stream stream, float value, Endian endian)
        {
            var rawValue = new Overlap <float, uint>(value).AsB;

            if (ShouldSwap(endian) == true)
            {
                rawValue = rawValue.Swap();
            }
            stream.WriteValueU32(rawValue, endian);
        }