]> git.bitcoin.ninja Git - rust-lightning/commit
Support Vec serialization that include element length prefix
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 11 Mar 2024 17:21:43 +0000 (10:21 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:27:59 +0000 (14:27 -0700)
commitc096a2416116b8249c3d45deeff03b154742b1c7
tree6fe1caa06f09a52d7e6419f66e28c468e93a249c
parent3c24a137b1088ca75d549b4355dc18980fad1a44
Support Vec serialization that include element length prefix

We add new macro alternatives to
impl_writeable_for_vec/impl_readable_for_vec that add a length prefix to
each element in the `Vec`. This is intended to be used over the existing
macros when attempting to serialize a `Vec` with elements of variable
lengths.
lightning/src/util/ser.rs