Tempest.StreamValueWriter.StreamValueWriter C# (CSharp) Method

StreamValueWriter() public method

public StreamValueWriter ( Stream stream ) : System
stream Stream
return System
        public StreamValueWriter(Stream stream)
        {
            if (stream == null)
                throw new ArgumentNullException ("stream");
            if (!stream.CanWrite)
                throw new ArgumentException ("Can not write to this stream", "stream");
            if (!BitConverter.IsLittleEndian) // TODO: Support.
                throw new NotSupportedException ("Big Endian architecture not supported");

            this.stream = stream;
        }