You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Store Buffer directly in attribute _packed fields
Remove unnecessary bytes() conversions throughout attribute classes.
The _packed field now stores Buffer (bytes or memoryview) directly,
avoiding copies when data comes from memoryview slices.
Changes:
- Update __init__ signatures to accept Buffer instead of bytes
- Remove data_bytes = bytes(data) patterns in from_packet() methods
- Use data directly for length checks and comparisons
- Update tests to use factory methods instead of raw constructors
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments