Esempio n. 1
0
        public static bool CheckYRMeta(IntPtr yrMetasPtr, out YR_META yrMetas)
        {
            yrMetas = default;

            if (yrMetasPtr == IntPtr.Zero)
            {
                return(false);
            }

            yrMetas = (YR_META)Marshal.PtrToStructure(yrMetasPtr, typeof(YR_META));

            if (yrMetas.type == 0)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
 private static bool MetaIsNull(YR_META m) => m.type == (int)META_TYPE.META_TYPE_NULL;
Esempio n. 3
0
 private static bool MetaIsLastInRule(YR_META m) => (m.flags & Constants.META_FLAGS_LAST_IN_RULE) != 0;