Tobias Maier f9a72fe9a3 feat(message): add support for decoding messages with trailing data
Added a new parameter `allow_too_long` to `Protocol300Message::try_from_bytes` to optionally ignore trailing data when decoding messages. This is useful when receiving messages with extra bytes that should not cause decoding to fail.

- Updated function signature and documentation to include the new parameter
- Modified length validation logic to skip error when `allow_too_long` is true
- Updated all existing test cases to use the new parameter
- Added new test cases to verify behavior with and without trailing data
2026-01-18 21:08:54 +01:00
2025-11-10 13:31:32 +01:00
2026-01-16 22:33:53 +01:00
2026-01-16 22:33:53 +01:00
2025-11-11 22:39:18 +01:00
Description
No description provided
Readme 124 KiB
Languages
Rust 100%