Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a length field to reference multiple other elements #17

Open
sprout42 opened this issue Oct 14, 2016 · 0 comments
Open

Allow a length field to reference multiple other elements #17

sprout42 opened this issue Oct 14, 2016 · 0 comments

Comments

@sprout42
Copy link
Owner

If a length field is a bytes element (added by #13), it might make sense for it to reference multiple following fields, up to ALL following fields. The reference string for a length field should be allowed to be a regex that searches for matches in all fields that come after the length field.

This would make the most sense to change after message validation is done by the fields, rather than the Message object (issue #15). Also, it might make the most sense to change after fields are allowed to be requested to be packed after one or more other fields in the message, so a length in bytes field could be packed after some list of other fields, and therefore it can be set to the correct actual number of bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant