Example #1
0
        public static log_hook_info from_ptr(IntPtr p)
        {
            GCHandle      h  = (GCHandle)p;
            log_hook_info hi = h.Target as log_hook_info;

            return(hi);
        }
Example #2
0
        internal static log_hook_info from_ptr(IntPtr p)
        {
            GCHandle      h  = (GCHandle)p;
            log_hook_info hi = h.Target as log_hook_info;

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