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

Function GraphEncodeContext_New

src/serializers/encode_context.c:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "../configuration/config.h"
12
13GraphEncodeContext *GraphEncodeContext_New() {
14 GraphEncodeContext *ctx = rm_calloc(1, sizeof(GraphEncodeContext));
15 ctx->meta_keys = raxNew();
16 GraphEncodeContext_Reset(ctx);
17 return ctx;
18}
19
20static void _GraphEncodeContext_ResetHeader(GraphEncodeContext *ctx) {
21 ASSERT(ctx != NULL);

Callers 1

GraphContext_NewFunction · 0.85

Calls 2

rm_callocFunction · 0.85
GraphEncodeContext_ResetFunction · 0.85

Tested by

no test coverage detected