Skip to content

Conversation

@JordonPhillips
Copy link
Contributor

This adds in explicit handling for both emtpy and incomplete event bytes. If nothing is able to be read from the source, event decoders will return None. If there are bytes there, but they're truncated, then an explicit error is thrown that wraps what would otherwise be a struct.error. This is only applied for truncations that would not already be caught by checksum validation.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This adds in explicit handling for both emtpy and incomplete event
bytes. If nothing is able to be read from the source, event decoders
will return None. If there are bytes there, but they're truncated,
then an explicit error is thrown that wraps what would otherwise
be a `struct.error`. This is only applied for truncations that would
not already be caught by checksum validation.
@JordonPhillips JordonPhillips requested a review from a team as a code owner November 26, 2024 13:51
@JordonPhillips JordonPhillips merged commit 2758bf9 into develop Nov 27, 2024
5 checks passed
@JordonPhillips JordonPhillips deleted the check-read branch November 27, 2024 13:00
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

Successfully merging this pull request may close these issues.

2 participants