From e750f4b6734d086e433e3c9c05b2252f43f4be8f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 May 2023 21:06:16 -0400 Subject: Add SerdNodes for storing a cache of interned nodes --- include/serd/node.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/serd/node.h') diff --git a/include/serd/node.h b/include/serd/node.h index d140e4c0..8dbdbde4 100644 --- a/include/serd/node.h +++ b/include/serd/node.h @@ -120,7 +120,7 @@ typedef uint32_t SerdNodeFlags; Arguments constructors like #serd_a_file_uri return a temporary view of their arguments, which can be passed (usually inline) to node construction - functions like #serd_node_new, or #serd_node_construct. + functions like #serd_node_new, #serd_node_construct, or #serd_nodes_get. @{ */ @@ -413,6 +413,9 @@ serd_node_construct(size_t buf_size, void* ZIX_NULLABLE buf, SerdNodeArgs args); nodes with an allocator. The returned nodes must be freed with serd_node_free() using the same allocator. + Note that in most cases it is better to use a #SerdNodes instead of managing + individual node allocations. + @{ */ -- cgit v1.2.1