public void WriteDefinition(IO.XmlElementStream s) { using (s.EnterCursorBookmark("Files")) WriteChunks(s); using (var bm = s.EnterCursorBookmarkOpt("LocalFiles", mLocalFiles, Predicates.HasItems)) if (bm.IsNotNull) { WriteLocalFiles(s); } }
public bool ReadDefinition(IO.XmlElementStream s) { mFiles.Clear(); // first entry should always be the null terminated filenames table mFiles.Add(GenerateFileNamesTableEntryChunk()); using (s.EnterCursorBookmark("Files")) ReadChunks(s); using (var bm = s.EnterCursorBookmarkOpt("LocalFiles")) if (bm.IsNotNull) { ReadLocalFiles(s); } AddVersionFile(); // there should be at least one file destined for the ERA, excluding the filenames table return(FileChunksCount != 0); }