we didn't settle, this is just us pursuing a prototype
we didn't settle, this is just us pursuing a prototype
Fody/InlineIL: Type Silk.NET.Core.MutMut has no constructor with signature (Silk.NET.Core.Mut) (in Silk.NET.Core.MutMut Silk.NET.Core.MutMut::op_Implicit(System.Byte*[]) at instruction IL_0053: call System.Void InlineIL.IL/Emit::Newobj(InlineIL.MethodRef))

/// <summary>
/// creates a <see cref="MutMut"/> from a pointer array
/// </summary>
/// <param name="array"></param>
public static implicit operator MutMut(byte*[] array)
{
IL.Emit.Ldarg_0();
IL.Emit.Ldc_I4_0();
IL.Emit.Ldelema(TypeRef.Type(typeof(byte).MakePointerType()));
IL.Emit.Newobj(
MethodRef.Constructor(
TypeRef.Type(typeof(MutMut)),
TypeRef.Type(typeof(Mut))
)
);
IL.Emit.Ret();
throw IL.Unreachable();
}