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

[library_sockfs.js] Cleanup buffer handling in sendmsg #22987

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 21, 2024

No description provided.

} else {
#endif
data = buffer.slice(offset, offset + length);
var data = buffer.slice(offset, offset + length);
#if PTHREADS
Copy link
Member

Choose a reason for hiding this comment

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

Separately, should this be #if SHARED_MEMORY so it works with WASM_WORKERS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed... maybe a followup?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

Extracting the `buffer.slice` expression made the code cleanup and
showed the double `new Uint8Array` to be redundant (AFAICT).
@sbc100 sbc100 enabled auto-merge (squash) November 22, 2024 00:50
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