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

Function _GraphEncodeContext_ResetHeader

src/serializers/encode_context.c:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static void _GraphEncodeContext_ResetHeader(GraphEncodeContext *ctx) {
21 ASSERT(ctx != NULL);
22
23 GraphEncodeHeader *header = &(ctx->header);
24
25 header->key_count = 0;
26 header->node_count = 0;
27 header->edge_count = 0;
28 header->graph_name = NULL;
29 header->label_matrix_count = 0;
30 header->relationship_matrix_count = 0;
31
32 if(header->multi_edge != NULL) {
33 rm_free(header->multi_edge);
34 header->multi_edge = NULL;
35 }
36}
37
38void GraphEncodeContext_Reset(GraphEncodeContext *ctx) {
39 ASSERT(ctx != NULL);

Callers 1

GraphEncodeContext_ResetFunction · 0.85

Calls 1

rm_freeFunction · 0.85

Tested by

no test coverage detected