Esempio n. 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);
        }
Esempio n. 2
0
 public bool Encode(IArchiveInfo Arc)
 {
     try
     {
         Arc.Encode(Encoder_);
         Encoder_.Flush();
         return(true);
     }
     catch (Exception Ex)
     {
         LLogger.LError(Ex.Message);
         return(false);
     }
 }