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

Function test_bit

common/features.c:290–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290static bool test_bit(const u8 *features, size_t byte, unsigned int bit)
291{
292 assert(byte < tal_count(features));
293 return features[tal_count(features) - 1 - byte] & (1 << (bit % 8));
294}
295
296/* BOLT #7:
297 *

Callers 4

feature_is_setFunction · 0.85
all_supported_featuresFunction · 0.85
list_supported_featuresFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected