Instance Property
bytes
The bytes decoded from this hex string, lowercased before decoding.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var bytes: [UInt8] { get throws }
Discussion
Throws
ByteHexEncodingErrors.invalidHexString if the string contains non-hex characters; ByteHexEncodingErrors.invalidHexValue if the string has an odd length.