private unsafe void InitializeNextInstance(IntPtr handle) { InstanceEntry instanceEntry = this; while (instanceEntry.internalInstanceEntry->NextInstanceOffset != 0) { InstanceEntry instanceEntry2 = new InstanceEntry(InstanceEntry.GetInternalInstanceEntry(handle, instanceEntry.internalInstanceEntry->NextInstanceOffset), handle); instanceEntry2.offset = instanceEntry.internalInstanceEntry->NextInstanceOffset; instanceEntry.nextInstanceEntry = instanceEntry2; instanceEntry = instanceEntry2; } }
public InstanceEntry(IntPtr handle, int offset) : this(InstanceEntry.GetInternalInstanceEntry(handle, offset), handle) { this.offset = offset; this.InitializeNextInstance(handle); }