Avro.BinaryEncoder.WriteDouble C# (CSharp) Method

WriteDouble() public method

A double is written as 8 bytes. The double is converted into a 64-bit integer using a method equivalent to Java's doubleToLongBits and then encoded in little-endian format.
public WriteDouble ( Stream Stream, double datum ) : void
Stream Stream
datum double
return void
        public void WriteDouble(Stream Stream, double datum)
        {
            long bits = BitConverter.DoubleToInt64Bits(datum);

            write(Stream, (byte)((bits) & 0xFF));
            write(Stream, (byte)((bits >> 8) & 0xFF));
            write(Stream, (byte)((bits >> 16) & 0xFF));
            write(Stream, (byte)((bits >> 24) & 0xFF));
            write(Stream, (byte)((bits >> 32) & 0xFF));
            write(Stream, (byte)((bits >> 40) & 0xFF));
            write(Stream, (byte)((bits >> 48) & 0xFF));
            write(Stream, (byte)((bits >> 56) & 0xFF));
        }
        /// <summary>