Skip to content

feat: add interop.stringFromCString - #228

Merged
NathanWalker merged 1 commit into
mainfrom
feat/interop-string-from-cstring
Oct 6, 2023
Merged

feat: add interop.stringFromCString#228
NathanWalker merged 1 commit into
mainfrom
feat/interop-string-from-cstring

Conversation

@edusperoni

Copy link
Copy Markdown
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
@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