MCPcopy Create free account
hub / github.com/codr7/hacktical-c / context_write

Function context_write

slog/slog.c:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void context_write(struct hc_slog *s,
139 const size_t n,
140 struct hc_slog_field *fields[]) {
141 struct hc_slog_context *c = hc_baseof(s, struct hc_slog_context, slog);
142 struct hc_slog_field *fs[c->length + n];
143 memcpy(fs, c->fields, sizeof(struct hc_slog_field *) * c->length);
144 memcpy(fs + c->length, fields, sizeof(struct hc_slog_field *) * n);
145 slog_write(c->parent, c->length + n, fs);
146}
147
148struct hc_slog_context *hc_slog_context_init(struct hc_slog_context *c,
149 size_t length,

Callers

nothing calls this directly

Calls 1

slog_writeFunction · 0.85

Tested by

no test coverage detected