-
Notifications
You must be signed in to change notification settings - Fork 3
Fix decoding ReadPropertyMultipleAck + add more ReadRangeValueTypes #6
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
base: main
Are you sure you want to change the base?
Fix decoding ReadPropertyMultipleAck + add more ReadRangeValueTypes #6
Conversation
c54cc6d to
34a1947
Compare
| buf, | ||
| TagNumber::ContextSpecificOpening(Self::DATE_TIME_TAG), | ||
| "ReadRangeItem decode", | ||
| "ReadRangeItem decode open date time", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me know if I should back these changes out - but it made it much easier to debug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are a little redundant because you have access to the Tag there but if they made your life easier then I have no problem at all putting them in. They are there for debugging after all.
|
I don't think it's a good time to add anything right now or you're going to have some painful merge conflicts to resolve. I'm busy making significant changes to solve these ownership issues. |
|
Ok the major refactor is done for now. I'm not 100% happy with it (ideally I would like to get rid of all the lifetimes if the |
src/network_protocol/data_link.rs
Outdated
| Self { | ||
| function, | ||
| npdu, | ||
| raw_payload: &[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in a comment in this PR, this should not be here as keeping track of segments is not the job of the codec. It should be done at a higher level.
b800b45 to
44edc59
Compare
|
Thanks for your changes, they look good! My apologies for taking my time in getting back to this. |
(you beat me too it)ReadPropertyMultipleAck::new_from_bufdoesn't take a reader, so itwill attempt to decode from the beginning of the slice. This fixes it to
only pass the remaining buf.
Add more support for decoding ReadRangeValueType (bool, unsigned,
signed and NULL).