Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Make use of the optionallen arg to serialize_seq method in Serializer #360

Open
zeenix opened this issue May 23, 2020 · 0 comments
Open
Labels
enhancement New feature or request zvariant Issues/PRs related to zvariant crate

Comments

@zeenix
Copy link
Collaborator

zeenix commented May 23, 2020

When the length is provided, we don't need to seek back to write the length of the sequence and can calculate and write it upfront. It's unfortunate that the length is not guaranteed so we could have removed the Seek requirement on the passed writer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request zvariant Issues/PRs related to zvariant crate
Projects
None yet
Development

No branches or pull requests

1 participant