コード例 #1
0
ファイル: MfcArchive.cs プロジェクト: AlexEnvision/SGTViewer
 public MfcArchive(Stream _stream, ArchiveOp _op)
     : base(_stream, _op)
 {
     if (_op == ArchiveOp.store)
     {
         throw new NotImplementedException("Writing to MFC compatible serialization is not supported.");
     }
 }
コード例 #2
0
ファイル: Archive.cs プロジェクト: AlexEnvision/SGTViewer
        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);
            }
        }