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;
}