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

Function update_err_off

wire/tlvstream.c:138–142  ·  view source on GitHub ↗

Update err_off to point to current offset. */

Source from the content-addressed store, hash-verified

136
137/* Update err_off to point to current offset. */
138static void update_err_off(size_t *err_off, size_t initial_len, size_t max)
139{
140 if (err_off)
141 *err_off = initial_len - max;
142}
143
144bool fromwire_tlv(const u8 **cursor, size_t *max,
145 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