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

Function pull_varint

bitcoin/block.c:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static u64 pull_varint(const u8 **cursor, size_t *max)
40{
41 u64 ret;
42 size_t len;
43
44 len = varint_get(*cursor, *max, &ret);
45 if (len == 0) {
46 *cursor = NULL;
47 *max = 0;
48 return 0;
49 }
50 pull(cursor, max, NULL, len);
51 return ret;
52}
53
54
55static void sha256_varint(struct sha256_ctx *ctx, u64 val)

Calls 2

varint_getFunction · 0.85
pullFunction · 0.85

Tested by

no test coverage detected