mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add meta/fix
This commit is contained in:
parent
3dde27a1e5
commit
cc644dbcf9
@ -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;
|
||||||
|
2
src/Internal/MemoryAllocator.cs.meta
Normal file
2
src/Internal/MemoryAllocator.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8c0a1776ab4060b4b9feb6349b708109
|
Loading…
Reference in New Issue
Block a user