Returns a pointer to the Unicode character buffer that serves as the backing store for a JavaScript string.
SDKs
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Java
Script Core
Declaration
func JSStringGetCharactersPtr(_ string: JSString Ref!) -> Unsafe Pointer<JSChar>!
Parameters
string
The JSString whose backing store you want to access.
Return Value
A pointer to the Unicode character buffer that serves as string's backing store, which will be deallocated when string is deallocated.