예제 #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);
        }
예제 #2
0
 public static void WriteEsfFile(string filename, EsfFile file)
 {
     using (BinaryWriter writer = new BinaryWriter(File.Create(filename))) {
         file.Codec.EncodeRootNode(writer, file.RootNode);
     }
 }