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

Function pull_varint

bitcoin/block.c:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 2

varint_getFunction · 0.85
pullFunction · 0.85

Tested by

no test coverage detected