snarkvm_utilities::serialize

Function serialize_vec_without_len

Source
pub fn serialize_vec_without_len<'a>(
    src: impl Iterator<Item = &'a (impl CanonicalSerialize + 'a)>,
    writer: impl Write,
    compress: Compress,
) -> Result<(), SerializationError>
Expand description

Serialize a Vector’s elements without serializing the Vector’s length If you want to serialize the full Vector, use CanonicalSerialize for Vec<T>