Пример #1
0
        public static authorizer_hook_info from_ptr(IntPtr p)
        {
            GCHandle             h  = (GCHandle)p;
            authorizer_hook_info hi = h.Target as authorizer_hook_info;

            return(hi);
        }
Пример #2
0
        internal static authorizer_hook_info from_ptr(IntPtr p)
        {
            GCHandle             h  = (GCHandle)p;
            authorizer_hook_info hi = h.Target as authorizer_hook_info;

            // TODO assert(hi._h == h)
            return(hi);
        }