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

Function update_err_off

wire/tlvstream.c:140–144  ·  view source on GitHub ↗

Update err_off to point to current offset. */

Source from the content-addressed store, hash-verified

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