Contents

dataRepresentation

The data representation of the URL’s relativeString.

Declaration

var dataRepresentation: Data { get }

Discussion

If the URL was initialized with initWithData:relativeToURL:, the data representation returned are the same bytes as those used at initialization; otherwise, the data representation returned are the bytes of the relativeString encoded with NSUTF8StringEncoding.

See Also

Creating a URL object