Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public TypeInfo(AssemblyImage image, uint address)
     : base(image, address)
 {
     this.Data  = this.ReadUInt32(0x0);
     this.Attrs = this.ReadUInt32(0x4);
 }
Ejemplo n.º 3
0
 public TypeInfo(AssemblyImage image, IntPtr address)
     : base(image, address)
 {
     this.Data  = this.ReadPtr(0x0);
     this.Attrs = this.ReadUInt32(this.Process.SizeOfPtr);
 }
Ejemplo n.º 4
0
 protected ManagedObjectInstance(AssemblyImage image, List <TypeInfo> genericTypeArguments, IntPtr address)
     : base(image, address)
 {
     this.genericTypeArguments = genericTypeArguments;
 }
Ejemplo n.º 5
0
 protected ManagedObjectInstance(AssemblyImage image, uint address)
     : base(image, address)
 {
 }
Ejemplo n.º 6
0
 protected MemoryObject(AssemblyImage image, IntPtr address)
 {
     this.Image   = image;
     this.Address = address;
 }