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

Use unsafeUseAsCString where it’s safe to do so #844

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

sergv
Copy link
Contributor

@sergv sergv commented Oct 15, 2023

Functions in General.Binary mostly read ther contents and don’t care about trailing 0 byte. It’s beneficial to avoid extra copy introduced by regular useAsCString.

Functions in General.Binary mostly read ther contents and don’t care
about trailing 0 byte. It’s beneficial to avoid extra copy introduced
by regular useAsCString.
@ndmitchell ndmitchell merged commit 04d2ca4 into ndmitchell:master Jan 14, 2024
0 of 8 checks passed
@ndmitchell
Copy link
Owner

Thanks, great catch!

ndmitchell added a commit that referenced this pull request Jan 14, 2024
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.

None yet

2 participants