Contents

init(bytesNoCopy:length:encoding:freeWhenDone:)

Creates a new string that contains the specified number of bytes from the given buffer, interpreted in the specified encoding, and optionally frees the buffer.

Declaration

init?(bytesNoCopy bytes: UnsafeMutableRawPointer, length: Int, encoding: String.Encoding, freeWhenDone flag: Bool)

Discussion

See Also

Converting a C String