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

Methods to calculate and verify checksums #644

Open
tgross35 opened this issue Sep 1, 2023 · 0 comments
Open

Methods to calculate and verify checksums #644

tgross35 opened this issue Sep 1, 2023 · 0 comments

Comments

@tgross35
Copy link

tgross35 commented Sep 1, 2023

Could methods for calculating and verifying checksums be added to packets? Something like:

impl MutableXPacket {
    /// Calculate the checksum and set the field
    fn update_checksum(&mut self);

    /// Return `true` if the checksum is valid for the current data, otherwise `false`
    fn verify_checksum(&self) -> bool;
}
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