Replies: 1 comment 2 replies
-
While we have guidelines on parsers, we haven't figured out the right line for what should be built-in. Everyone has a different use case which will emphasize different needs. For example, I do a lot of text parsing and only use the higher level capabilities for prototyping. This makes it more difficult to evaluate. It doesn't help that there is little lost in having these things be external. Could you provide examples of formats that require slice conversions like that? Looking to better understand how often it comes up and what data types the conversions happen for. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if it would make sense to have some binary parsers that do something like (and similar for other integer types):
I am thinking of use cases where you want to parse a binary data packet like:
We could, instead have a:
And get rid of the vector allocation if it is not needed. If target endianness matches data endianness and alignment allow, we get a slice of
u16
, otherwise we just allocate the vector.Does something like this make sense in winnow, and is it worth it?
Beta Was this translation helpful? Give feedback.
All reactions