Instance Method

getCharacters(_:)

Copies all characters from the receiver into a given buffer.

Declaration

func getCharacters(_ buffer: UnsafeMutablePointer<unichar>)

Parameters

buffer

Upon return, contains the characters from the receiver. buffer must be large enough to contain all characters in the string ([string length]*sizeof(unichar)).

Discussion

Invokes getCharacters(_:range:) with buffer and the entire extent of the receiver as the range.

See Also

Related Symbols

var length: Int

The number of UTF-16 code units in the receiver.