* ggandiva_binary_literal_node_get_value: * @node: A #GGandivaBinaryLiteralNode. * * Returns: (transfer none): The value of the binary literal. * * Since: 0.12.0 */
| 1110 | * Since: 0.12.0 |
| 1111 | */ |
| 1112 | GBytes * |
| 1113 | ggandiva_binary_literal_node_get_value(GGandivaBinaryLiteralNode *node) |
| 1114 | { |
| 1115 | auto priv = GGANDIVA_BINARY_LITERAL_NODE_GET_PRIVATE(node); |
| 1116 | if (!priv->value) { |
| 1117 | auto value = ggandiva_literal_node_get<std::string>(GGANDIVA_LITERAL_NODE(node)); |
| 1118 | priv->value = g_bytes_new(value.data(), value.size()); |
| 1119 | } |
| 1120 | |
| 1121 | return priv->value; |
| 1122 | } |
| 1123 | |
| 1124 | G_DEFINE_TYPE(GGandivaStringLiteralNode, |
| 1125 | ggandiva_string_literal_node, |