mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2026-04-22 01:45:55 +08:00
fix mem alloc
This commit is contained in:
parent
fe660f5500
commit
25a987ea58
@ -328,7 +328,9 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
Handler.Dispose();
|
Handler.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString() { return Handler.DebuggerDisplay(); }
|
#if DEBUG
|
||||||
|
public override string ToString() { return DebuggerDisplay(); }
|
||||||
|
#endif
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public override int GetHashCode() { return RawPtr.GetHashCode(); }
|
public override int GetHashCode() { return RawPtr.GetHashCode(); }
|
||||||
public override bool Equals(object obj) { return obj is Handler h && h == this; }
|
public override bool Equals(object obj) { return obj is Handler h && h == this; }
|
||||||
@ -395,7 +397,9 @@ namespace DCFApixels.DragonECS.Core.Internal
|
|||||||
|
|
||||||
public void Dispose() { Free((void*)RawPtr); }
|
public void Dispose() { Free((void*)RawPtr); }
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
public override string ToString() { return DebuggerDisplay(); }
|
public override string ToString() { return DebuggerDisplay(); }
|
||||||
|
#endif
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public override int GetHashCode() { return RawPtr.GetHashCode(); }
|
public override int GetHashCode() { return RawPtr.GetHashCode(); }
|
||||||
public override bool Equals(object obj) { return obj is Handler h && h == this; }
|
public override bool Equals(object obj) { return obj is Handler h && h == this; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user