Beispiel #1
0
        internal unsafe void Write(double source)
        {
            ulong val = *((ulong *)&source);

#if BIGENDIAN
            val = NetUtility.SwapByteOrder(val);
#endif
            Write(val);
        }
Beispiel #2
0
        //
        // Floating point
        //
#if UNSAFE
        internal unsafe void Write(float source)
        {
            uint val = *((uint *)&source);

#if BIGENDIAN
            val = NetUtility.SwapByteOrder(val);
#endif
            Write(val);
        }