add meta/fix

This commit is contained in:
DCFApixels 2025-05-17 15:01:17 +08:00
parent 3dde27a1e5
commit cc644dbcf9
2 changed files with 2 additions and 3 deletions

View File

@ -234,7 +234,6 @@ namespace DCFApixels.DragonECS.Core.Internal
#region Debugger #region Debugger
#if DEBUG #if DEBUG
[RequiresDynamicCode("Calls System.Runtime.InteropServices.Marshal.SizeOf(Type)")]
internal unsafe string DebuggerDisplay() internal unsafe string DebuggerDisplay()
{ {
if(Data == null) if(Data == null)
@ -252,7 +251,6 @@ namespace DCFApixels.DragonECS.Core.Internal
return $"Count: {meta.ByteLength / Marshal.SizeOf(info.type)} {info.type.Name}"; return $"Count: {meta.ByteLength / Marshal.SizeOf(info.type)} {info.type.Name}";
} }
[RequiresDynamicCode("Calls System.Runtime.InteropServices.Marshal.SizeOf(Type)")]
internal static Array CreateArray_Debug(Type type, int count, byte* data, int byteLength) internal static Array CreateArray_Debug(Type type, int count, byte* data, int byteLength)
{ {
var array = Array.CreateInstance(type, count); var array = Array.CreateInstance(type, count);
@ -291,7 +289,6 @@ namespace DCFApixels.DragonECS.Core.Internal
public HandlerDebugInfo[] OtherHandlersInfo; public HandlerDebugInfo[] OtherHandlersInfo;
[RequiresDynamicCode("Calls System.Runtime.InteropServices.Marshal.SizeOf(Type)")]
public unsafe DebuggerProxy(Handler handler) public unsafe DebuggerProxy(Handler handler)
{ {
IsAlive = handler.Ptr.ToPointer() != null; IsAlive = handler.Ptr.ToPointer() != null;

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8c0a1776ab4060b4b9feb6349b708109