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

Improve serialize #30

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Improve serialize #30

merged 2 commits into from
Jan 23, 2025

Conversation

ibc
Copy link
Member

@ibc ibc commented Jan 23, 2025

Make serialize() perfect.

Comment on lines +176 to +181
buffer === this.view.buffer &&
((byteOffset >= this.view.byteOffset &&
byteOffset <= this.view.byteOffset + this.view.byteLength - 1) ||
(byteOffset + byteLength - 1 >= this.view.byteOffset &&
byteOffset + byteLength <=
this.view.byteOffset + this.view.byteLength - 1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would better go into an util IMHO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed anywhere else. But if we need it somewhere else I will ofc move it into an util.

@ibc ibc merged commit ec25379 into master Jan 23, 2025
7 checks passed
@ibc ibc deleted the improve-serialize branch January 23, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants