Agnos.Transports.BaseTransport.writeSInt32 C# (CSharp) Method

writeSInt32() protected static method

protected static writeSInt32 ( Stream stream, int val ) : void
stream Stream
val int
return void
        protected static void writeSInt32(Stream stream, int val)
        {
            byte[] buf = {(byte)((val >> 24) & 0xff),
                (byte)((val >> 16) & 0xff),
                (byte)((val >> 8) & 0xff),
                (byte)((val) & 0xff)};
            stream.Write(buf, 0, buf.Length);
        }