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

Function update_err_off

wire/tlvstream.c:137–141  ·  view source on GitHub ↗

Update err_off to point to current offset. */

Source from the content-addressed store, hash-verified

135
136/* Update err_off to point to current offset. */
137static void update_err_off(size_t *err_off, size_t initial_len, size_t max)
138{
139 if (err_off)
140 *err_off = initial_len - max;
141}
142
143bool fromwire_tlv(const u8 **cursor, size_t *max,
144 const struct tlv_record_type *types, size_t num_types,

Callers 1

fromwire_tlvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected