Exemple #1
0
 public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size)
 {
     this.references        = new List <HeapshotReader.ReferenceInfo>();
     this.inverseReferences = new List <HeapshotReader.BackReferenceInfo>();
     this.typeInfo          = typeInfo;
     this.size = size;
 }
Exemple #2
0
        private void ReadType(BinaryReader reader)
        {
            uint num = reader.ReadUInt32();

            HeapshotReader.TypeInfo typeInfo = new HeapshotReader.TypeInfo();
            typeInfo.name = reader.ReadString();
            uint key;

            while ((key = reader.ReadUInt32()) != 0u)
            {
                HeapshotReader.FieldInfo fieldInfo = new HeapshotReader.FieldInfo();
                fieldInfo.name       = reader.ReadString();
                typeInfo.fields[key] = fieldInfo;
            }
            if (this.types.ContainsKey(num))
            {
                throw new Exception(string.Format("Type info for object {0} was already loaded!!!", num));
            }
            this.types[num] = typeInfo;
            this.allTypes.Add(typeInfo);
        }
        private void ReadType(BinaryReader reader)
        {
            uint key = reader.ReadUInt32();

            HeapshotReader.TypeInfo typeInfo = new HeapshotReader.TypeInfo();
            typeInfo.name = reader.ReadString();
            uint index;

            while ((int)(index = reader.ReadUInt32()) != 0)
            {
                typeInfo.fields[index] = new HeapshotReader.FieldInfo()
                {
                    name = reader.ReadString()
                }
            }
            ;
            if (this.types.ContainsKey(key))
            {
                throw new Exception(string.Format("Type info for object {0} was already loaded!!!", (object)key));
            }
            this.types[key] = typeInfo;
            this.allTypes.Add(typeInfo);
        }
Exemple #4
0
 public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size)
 {
     this.typeInfo = typeInfo;
     this.size     = size;
 }
			public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size, HeapshotReader.ObjectType type)
			{
				this.typeInfo = typeInfo;
				this.size = size;
				this.type = type;
			}
		private void ReadType(BinaryReader reader)
		{
			uint num = reader.ReadUInt32();
			HeapshotReader.TypeInfo typeInfo = new HeapshotReader.TypeInfo();
			typeInfo.name = reader.ReadString();
			uint key;
			while ((key = reader.ReadUInt32()) != 0u)
			{
				HeapshotReader.FieldInfo fieldInfo = new HeapshotReader.FieldInfo();
				fieldInfo.name = reader.ReadString();
				typeInfo.fields[key] = fieldInfo;
			}
			if (this.types.ContainsKey(num))
			{
				throw new Exception(string.Format("Type info for object {0} was already loaded!!!", num));
			}
			this.types[num] = typeInfo;
			this.allTypes.Add(typeInfo);
		}
 public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size, HeapshotReader.ObjectType type)
 {
     this.references = new List<HeapshotReader.ReferenceInfo>();
     this.inverseReferences = new List<HeapshotReader.BackReferenceInfo>();
     this.typeInfo = typeInfo;
     this.size = size;
     this.type = type;
 }
 private void ReadType(BinaryReader reader)
 {
   uint key = reader.ReadUInt32();
   HeapshotReader.TypeInfo typeInfo = new HeapshotReader.TypeInfo();
   typeInfo.name = reader.ReadString();
   uint index;
   while ((int) (index = reader.ReadUInt32()) != 0)
     typeInfo.fields[index] = new HeapshotReader.FieldInfo()
     {
       name = reader.ReadString()
     };
   if (this.types.ContainsKey(key))
     throw new Exception(string.Format("Type info for object {0} was already loaded!!!", (object) key));
   this.types[key] = typeInfo;
   this.allTypes.Add(typeInfo);
 }