UnityEditor.HeapshotReader.Open C# (CSharp) Method

Open() public method

public Open ( string fileName ) : bool
fileName string
return bool
        public bool Open(string fileName)
        {
            Stream stream;
            BinaryReader reader;
            this.types.Clear();
            this.objects.Clear();
            this.roots.Clear();
            this.allObjects.Clear();
            this.allTypes.Clear();
            try
            {
                stream = new FileStream(fileName, System.IO.FileMode.Open, FileAccess.Read);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message);
                return false;
            }
            try
            {
                reader = new BinaryReader(stream);
            }
            catch (Exception exception2)
            {
                Console.WriteLine(exception2.Message);
                stream.Close();
                return false;
            }
            this.ReadHeader(reader);
            while (this.ReadData(reader))
            {
            }
            this.ResolveReferences();
            this.ResolveInverseReferences();
            this.ResolveRoots();
            reader.Close();
            stream.Close();
            return true;
        }