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

Function get_u5_bit

common/bech32_util.c:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static u8 get_u5_bit(const u5 *src, size_t bitoff)
30{
31 return ((src[bitoff / 5] >> (4 - (bitoff % 5))) & 1);
32}
33
34bool bech32_pull_bits(u8 **data, const u5 *src, size_t nbits)
35{

Callers 1

bech32_pull_bitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected