AaltoTLS.HandshakeLayer.Protocol.HandshakeStream.WriteUInt32 C# (CSharp) Method

WriteUInt32() public method

public WriteUInt32 ( UInt32 value ) : void
value System.UInt32
return void
        public void WriteUInt32(UInt32 value)
        {
            byte[] data = BitConverter.GetBytes(value);
            if (BitConverter.IsLittleEndian) {
                Array.Reverse(data);
            }
            _writer.Write(data);
        }