static void agg_function_hook_bridge_final(IntPtr context) { IntPtr agg = new IntPtr(SQLite3RuntimeProvider.sqlite3_aggregate_context(context.ToInt64(), 8)); // TODO error check agg nomem IntPtr p = new IntPtr(SQLite3RuntimeProvider.sqlite3_user_data(context.ToInt64())); agg_function_hook_info hi = agg_function_hook_info.from_ptr(p); hi.call_final(context, agg); }