Creates a string from the null-terminated sequence of bytes at the given pointer.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Parameters
nullTerminatedCodeUnits
A pointer to a sequence of contiguous code units in the encoding specified in
source
, ending just before the first zero code unit.Encoding sourceEncoding
The encoding in which the code units should be interpreted.