protected void WriteInnerParts(FileStream fs) { //_id.WriteToFile(fs); _frames.WriteToFile(fs); _unknown1.WriteToFile(fs); _unknown2.WriteToFile(fs); }
public void Write(FileStream stream, MtpSentence previous) { _size.WriteToFile(stream); if (_sentence != null) { PadSentence(); _sentence.WriteToFile(stream); } }
public void Write(FileStream stream) { _id.WriteToFile(stream); _actor.WriteToFile(stream); _start.WriteToFile(stream); _unknown.WriteToFile(stream); if (_timing != null) { _timing.Write(); } _sentence.Write(stream, _previous == null ? null : _previous.Sentence); }
public override void Write() { try { using (var stream = new FileStream(_filename, FileMode.Open, FileAccess.Write, FileShare.Read)) { _eofcOne.WriteToFile(stream); _eofcTwo.WriteToFile(stream); foreach (MtpIndexEntry mie in _indexes.Values) { mie.Write(stream); } _restOfIt.WriteToFile(stream); stream.Close(); } } catch (Exception exc) { Console.Out.WriteLine(exc.ToString()); } }