init(data:)
Creates a filename by copying a character sequence data object.
Declaration
convenience init(data name: Data)Parameters
- name:
The data object containing the character sequence to use for the filename. The sequence terminates if a
NULcharacter exists prior toname.length.
Discussion
This initializer copies up to name.length characters of the sequence pointed to by bytes.