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); }
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); }