mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 02:55:41 +00:00
Cast to IntPtr if .NET < 7
This commit is contained in:
parent
b95de092f8
commit
61042ee5e8
@ -242,7 +242,11 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
#if NET7_0_OR_GREATER
|
||||
data = new Span<byte>(dataPtr.ToPointer(), length);
|
||||
#else
|
||||
data = new Span<byte>(((IntPtr)dataPtr).ToPointer(), length);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user