Skip to content

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.

3 participants