Esempio n. 1
0
 public MfcArchive(Stream _stream, ArchiveOp _op)
     : base(_stream, _op)
 {
     if (_op == ArchiveOp.store)
     {
         throw new NotImplementedException("Writing to MFC compatible serialization is not supported.");
     }
 }
Esempio n. 2
0
        private const int m_Index     = 0;     // actually never changes

        public Archive(Stream _stream, ArchiveOp _op)
        {
            op = _op;

            if (_op == ArchiveOp.load)
            {
                reader = new BinaryReader(_stream);
            }
            else
            {
                writer = new BinaryWriter(_stream);
            }
        }