private void WriteToSubStream(ArchiveWriteStream MainStream, IArchiveInfo Info) { var SubStream = new ArchiveWriteStream(); var SubEncoder = new ArchiveEncoder(SubStream); Info.Encode(SubEncoder); SubEncoder.Flush(); MainStream.WriteStream(SubStream); }
public ArchiveCodec(string ArchivePath) { ArchivePath_ = ArchivePath; ReadStream_ = new ArchiveReadStream(); Decoder_ = new ArchiveDecoder(ReadStream_); WriteStream_ = new ArchiveWriteStream(); Encoder_ = new ArchiveEncoder(WriteStream_); WriteArchiveCrcConst(); }