MiloszKrajewski / K4os.Compression.LZ4

LZ4/LH4HC compression for .NET Standard 1.6/2.0 (formerly known as lz4net)
MIT License
675 stars 77 forks source link

Unity Support #71

Closed DoktorAce closed 2 years ago

DoktorAce commented 2 years ago

Unity is mentioned under the very last section in the readme. But things like ReadOnlySpan from System.Memory.dll requires .net 5+ which Unity does not support? Or am I missing something here, because I can't get it to compile in Unity 2020.2.

MiloszKrajewski commented 2 years ago

I am not using Unity myself, so I don't know, but people did use it with Unity.

The other of your statements is actually not true: System.Memory is compatible with: (source: https://www.nuget.org/packages/System.Memory/4.5.4) image

.NETCoreApp 2.0
.NETCoreApp 2.1
.NETFramework 4.5
.NETFramework 4.6.1
.NETStandard 1.1
.NETStandard 2.0
MonoAndroid 1.0
MonoTouch 1.0
Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhoneApp 8.1)
UAP 10.0.16299
Windows 8.0
WindowsPhoneApp 8.1
Xamarin.iOS 1.0
Xamarin.Mac 2.0
Xamarin.TVOS 1.0
Xamarin.WatchOS 1.0

So, it SHOULD work without a problem. If it doesn't (which is possible) it is for a DIFFERENT reason.

MiloszKrajewski commented 2 years ago

You may take a look at #66

MiloszKrajewski commented 2 years ago

Did you make it work?