Update err_off to point to current offset. */
| 135 | |
| 136 | /* Update err_off to point to current offset. */ |
| 137 | static 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 | |
| 143 | bool fromwire_tlv(const u8 **cursor, size_t *max, |
| 144 | const struct tlv_record_type *types, size_t num_types, |