| 18 | } |
| 19 | |
| 20 | static 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 | |
| 38 | void GraphEncodeContext_Reset(GraphEncodeContext *ctx) { |
| 39 | ASSERT(ctx != NULL); |
no test coverage detected