Returns by reference the byte representation of a URL object.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The URL object to convert to a byte representation.
The buffer where you want the bytes to be placed. If the buffer is of insufficient size, returns
-1and no bytes are placed in buffer. If
NULLthe needed length is computed and returned. The returned bytes are the original bytes from which the URL was created (not including the base URL). If the URL was created from a string, the bytes are the bytes of the string encoded via UTF-8.
The number of bytes in
Returns the number of bytes in
buffer that were filled. If the buffer is of insufficient size, returns