MCPcopy Create free account
hub / github.com/audacity/audacity / serd_node_copy

Function serd_node_copy

lib-src/lv2/serd/src/node.c:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62SerdNode
63serd_node_copy(const SerdNode* node)
64{
65 if (!node || !node->buf) {
66 return SERD_NODE_NULL;
67 }
68
69 SerdNode copy = *node;
70 uint8_t* buf = (uint8_t*)malloc(copy.n_bytes + 1);
71 memcpy(buf, node->buf, copy.n_bytes + 1);
72 copy.buf = buf;
73 return copy;
74}
75
76bool
77serd_node_equals(const SerdNode* a, const SerdNode* b)

Callers 5

serd_writer_set_root_uriFunction · 0.85
serd_env_addFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68