Example #1
0
        public bool GetNext(out MValue.Function value)
        {
            if (size == 0)
            {
                value = default;
                return(false);
            }

            var mValue = Marshal.PtrToStructure <MValue>(data);

            data += MValue.Size;
            size--;
            if (mValue.type != MValue.Type.FUNCTION)
            {
                value = default;
                return(false);
            }

            value = mValue.GetFunction();
            return(true);
        }
 public IntPtr CreateInvoker(MValue.Function function)
 {
     return(AltNative.MValueCreate.Invoker_Create(NativePointer, function));
 }
 public FunctionWrapper(MValue.Function function)
 {
     this.function = function;
 }
Example #4
0
 internal static extern IntPtr Invoker_Create(IntPtr csharpResourcePointer, MValue.Function function);
 public static Invoker Create(MValue.Function function)
 {
     return(new Invoker(AltNative.MValueCreate.Invoker_Create(function)));
 }
Example #6
0
 internal static extern IntPtr Invoker_Create(MValue.Function function);
Example #7
0
 public FunctionStorage(MValue.Function value)
 {
     refCount   = 1;
     this.value = value;
 }
Example #8
0
 public static Invoker Create(MValue.Function function)
 {
     return(new Invoker(
                AltNative.MValueCreate.Invoker_Create(Alt.Module.CSharpNativeResource.NativePointer, function)));
 }