MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rec_payload_len

Function rec_payload_len

internal/cbm/sqlite_writer.c:450–452  ·  view source on GitHub ↗

Bytes rec_write produces: the record exactly as rec_finalize returns it.

Source from the content-addressed store, hash-verified

448
449// Bytes rec_write produces: the record exactly as rec_finalize returns it.
450static int rec_payload_len(const RecordBuilder *r) {
451 return rec_total_header(r) + r->body.len;
452}
453
454// Write the record (header_len + header + body) at dst; returns its length.
455static int rec_write(const RecordBuilder *r, uint8_t *dst) {

Callers 3

rec_finalizeFunction · 0.85
rec_finalize_index_cellFunction · 0.85

Calls 1

rec_total_headerFunction · 0.85

Tested by

no test coverage detected