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

feat: add interop.stringFromCString #228

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

edusperoni
Copy link
Collaborator

adds a new interop function function interop.stringFromCstring(ptr: interop.Pointer | interop.Reference, length?: number): string which allows you to easily convert a char* into a JS string (around 10x faster than doing NSString.stringWithUTF8String().toString())

@cla-bot cla-bot bot added the cla: yes label Sep 1, 2023
@NathanWalker NathanWalker merged commit 185c12d into main Oct 6, 2023
2 checks passed
@NathanWalker NathanWalker deleted the feat/interop-string-from-cstring branch October 6, 2023 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants