MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / GraphEncodeContext_GetKeyCount

Function GraphEncodeContext_GetKeyCount

src/serializers/encode_context.c:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106uint64_t GraphEncodeContext_GetKeyCount(const GraphEncodeContext *ctx) {
107 ASSERT(ctx);
108 // The `meta_keys` rax contains only the meta keys names. Add one for the graph context key.
109 return raxSize(ctx->meta_keys) + 1;
110}
111
112void GraphEncodeContext_AddMetaKey(GraphEncodeContext *ctx, const char *key) {
113 ASSERT(ctx);

Calls

no outgoing calls

Tested by

no test coverage detected