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

Function get_bit

common/bech32_util.c:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <common/bech32_util.h>
5
6static u8 get_bit(const u8 *src, size_t bitoff)
7{
8 return ((src[bitoff / 8] >> (7 - (bitoff % 8))) & 1);
9}
10
11void bech32_push_bits(u5 **data, const void *src, size_t nbits)
12{

Callers 1

bech32_push_bitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected