
    static final MethodHandle {{ handle_name }} = LIB
        .find("{{ ffi_name }}")
        .map(s -> LINKER.downcallHandle(s, FunctionDescriptor.of(ValueLayout.JAVA_LONG,
            ValueLayout.ADDRESS, {{ vtable_layout }}, ValueLayout.ADDRESS, ValueLayout.ADDRESS)))
        .orElse(null);
