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

Function tal_hexdata

common/utils.c:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len)
145{
146 u8 *data = tal_arr(ctx, u8, hex_data_size(len));
147 if (!hex_decode(str, len, data, hex_data_size(len)))
148 return NULL;
149 return data;
150}
151
152/* Use the POSIX C locale. */
153void setup_locale(void)

Callers 15

mkgossipFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
gossip_store_getFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
test_wallet_outputsFunction · 0.85
test_channel_crudFunction · 0.85

Calls 2

hex_data_sizeFunction · 0.85
hex_decodeFunction · 0.85

Tested by 15

mkgossipFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
gossip_store_getFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
test_wallet_outputsFunction · 0.68
test_channel_crudFunction · 0.68