MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_col_preimage

Function db_col_preimage

db/bindings.c:349–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void db_col_preimage(struct db_stmt *stmt, const char *colname,
350 struct preimage *preimage)
351{
352 size_t col = db_query_colnum(stmt, colname);
353 const u8 *raw;
354 size_t size = sizeof(struct preimage);
355 assert(db_column_bytes(stmt, col) == size);
356 raw = db_column_blob(stmt, col);
357 memcpy(preimage, raw, size);
358}
359
360void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest)
361{

Callers 1

Calls 3

db_query_colnumFunction · 0.85
db_column_bytesFunction · 0.85
db_column_blobFunction · 0.85

Tested by

no test coverage detected