Ejemplo n.º 1
0
        public EndiannessBinaryReader(Stream stream, EndianSpecific endian, Encoding encoding, bool leaveOpen)
            : base(stream, encoding, leaveOpen)
        {
            switch (endian)
            {
            case EndianSpecific.Host:
                ignore = true;
                break;

            case EndianSpecific.Little:
                ignore = BitConverter.IsLittleEndian;
                break;

            case EndianSpecific.Big:
                ignore = !BitConverter.IsLittleEndian;
                break;
            }
        }
Ejemplo n.º 2
0
 public EndiannessBinaryReader(Stream stream, EndianSpecific endian, Encoding encoding)
     : this(stream, endian, encoding, false)
 {
 }