* ggandiva_native_function_to_string: * @native_function: A #GGandivaNativeFunction. * * Returns: (transfer full): * The string representation of the signatures of the native function. * It should be freed with g_free() when no longer needed. * * Since: 0.14.0 */
| 139 | * Since: 0.14.0 |
| 140 | */ |
| 141 | gchar * |
| 142 | ggandiva_native_function_to_string(GGandivaNativeFunction *native_function) |
| 143 | { |
| 144 | auto gandiva_native_function = ggandiva_native_function_get_raw(native_function); |
| 145 | auto string = g_string_new(NULL); |
| 146 | for (auto &gandiva_signature : gandiva_native_function->signatures()) { |
| 147 | if (string->len > 0) { |
| 148 | g_string_append(string, ", "); |
| 149 | } |
| 150 | const auto &signature_string = gandiva_signature.ToString(); |
| 151 | g_string_append_len(string, signature_string.data(), signature_string.length()); |
| 152 | } |
| 153 | return g_string_free(string, FALSE); |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * ggandiva_native_function_get_result_nullable_type: |
nothing calls this directly
no test coverage detected