static int collation_hook_bridge(IntPtr p, int len1, IntPtr pv1, int len2, IntPtr pv2) { collation_hook_info hi = collation_hook_info.from_ptr(p); return(hi.call(util.from_utf8(pv1, len1), util.from_utf8(pv2, len2))); }