Function

JSStringGetCharactersPtr(_:)

Returns a pointer to the Unicode character buffer that serves as the backing store for a JavaScript string.

Declaration

func JSStringGetCharactersPtr(_ string: JSStringRef!) -> UnsafePointer<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.