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