Beispiel #1
0
        public ManagedClassInstance([NotNull] AssemblyImage image, List <TypeInfo> genericTypeArguments, IntPtr address)
            : base(image, genericTypeArguments, address)
        {
            if (image == null)
            {
                throw new ArgumentNullException(nameof(image));
            }

            // the address of the class instance points directly back the the classes VTable
            this.vtable = this.ReadPtr(0x0);

            // The VTable points to the class definition itself.
            this.definitionAddress = image.Process.ReadPtr(this.vtable);
        }
 public TypeInfo(AssemblyImage image, uint address)
     : base(image, address)
 {
     this.Data  = this.ReadUInt32(0x0);
     this.Attrs = this.ReadUInt32(0x4);
 }
Beispiel #3
0
 public TypeInfo(AssemblyImage image, IntPtr address)
     : base(image, address)
 {
     this.Data  = this.ReadPtr(0x0);
     this.Attrs = this.ReadUInt32(this.Process.SizeOfPtr);
 }
Beispiel #4
0
 protected ManagedObjectInstance(AssemblyImage image, List <TypeInfo> genericTypeArguments, IntPtr address)
     : base(image, address)
 {
     this.genericTypeArguments = genericTypeArguments;
 }
Beispiel #5
0
 protected ManagedObjectInstance(AssemblyImage image, uint address)
     : base(image, address)
 {
 }
Beispiel #6
0
 protected MemoryObject(AssemblyImage image, IntPtr address)
 {
     this.Image   = image;
     this.Address = address;
 }