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.
buffermust 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 Documentation
Deprecated
string(withCString:)init(CString:)string(withCString:length:)init(CString:length:)init(CStringNoCopy:length:freeWhenDone:)string(withContentsOfFile:)init(contentsOfFile:)string(withContentsOf:)init(contentsOfURL:)write(toFile:atomically:)write(to:atomically:)cString()lossyCString()cStringLength()getCString(_:)