コード例 #1
0
        private void WriteToSubStream(ArchiveWriteStream MainStream, IArchiveInfo Info)
        {
            var SubStream  = new ArchiveWriteStream();
            var SubEncoder = new ArchiveEncoder(SubStream);

            Info.Encode(SubEncoder);
            SubEncoder.Flush();
            MainStream.WriteStream(SubStream);
        }
コード例 #2
0
        public ArchiveCodec(string ArchivePath)
        {
            ArchivePath_ = ArchivePath;

            ReadStream_  = new ArchiveReadStream();
            Decoder_     = new ArchiveDecoder(ReadStream_);
            WriteStream_ = new ArchiveWriteStream();
            Encoder_     = new ArchiveEncoder(WriteStream_);
            WriteArchiveCrcConst();
        }