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

Function test_bit

common/features.c:304–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static bool test_bit(const u8 *features, size_t byte, unsigned int bit)
305{
306 assert(byte < tal_count(features));
307 return features[tal_count(features) - 1 - byte] & (1 << (bit % 8));
308}
309
310/* BOLT #7:
311 *

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