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

Function GraphDecodeContext_New

src/serializers/decode_context.c:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "../util/rax_extensions.h"
12
13GraphDecodeContext *GraphDecodeContext_New() {
14 GraphDecodeContext *ctx = rm_malloc(sizeof(GraphDecodeContext));
15 ctx->keys_processed = 0;
16 ctx->graph_keys_count = 1;
17 ctx->meta_keys = raxNew();
18 ctx->multi_edge = NULL;
19 return ctx;
20}
21
22void GraphDecodeContext_Reset(GraphDecodeContext *ctx) {
23 ASSERT(ctx);

Callers 1

GraphContext_NewFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected