Initializer

init(cString:)

Creates a string from the null-terminated, UTF-8 encoded sequence of bytes at the given pointer. 与えられたポインタでの、null終端の、UTF-8エンコードされたバイトシーケンスから文字列を作成します。

Declaration 宣言

init(cString nullTerminatedUTF8: UnsafePointer<CChar>)

Parameters パラメータ

nullTerminatedUTF8

A pointer to a sequence of contiguous, UTF-8 encoded bytes ending just before the first zero byte. 最初のゼロバイト直前で終わっている、隣接の、UTF-8エンコードされた幾らかのバイトに対するポインタ。