Example #1
0
        public override bool Equals(object obj)
        {
            bool    result = false;
            EsfFile file   = obj as EsfFile;

            if (file != null)
            {
                result  = Codec.ID == file.Codec.ID;
                result &= (RootNode as ParentNode).Equals(file.RootNode);
            }
            return(result);
        }
Example #2
0
 public static void WriteEsfFile(string filename, EsfFile file)
 {
     using (BinaryWriter writer = new BinaryWriter(File.Create(filename))) {
         file.Codec.EncodeRootNode(writer, file.RootNode);
     }
 }