Closed r-laf closed 1 year ago
Looks like a problem with Mono which doesn't support nested arrays with function pointers.
A code with the same exception:
unsafe class Program
{
public static delegate* managed<int>[][] Functions = {
new delegate* managed<int>[]
{
&Function,
},
};
public static int Function() => 42;
}
Just wanted to ask is there a way around it with Mono?
I will make a workaround for this.
Fixed in 0.6.7
@zh4ui Could you check it?
Sure, I will check it tomorrow
Sure, I will check it tomorrow
Thanks for the update! With 0.6.7, I confirm it's now okay to do dictionary-based decompression on MAUI for Android.
Hi,
I was trying to use ZstdSharp (ver 0.6.6) in a MAUI project targeting Android. The building was fine, but when I ran it, exception raised when constructing a Decompressor.
The exception was at line https://github.com/oleg-st/ZstdSharp/blob/master/src/ZstdSharp/Unsafe/ZstdCompress.cs#L2725 with the following information