This will, I'm sure, point out my knowledge gap. But I don't seen anything about this in the S.O. knowledge banks and looking at the foundation code has not shed any light for me.
Basic question: why does Swift's Data print differently than NSData?
e.g.
func getData(_ data:Data) {
print("The TLV was: \(data as NSData)")
}
prints:
The TLV was: <020101>
But ...
func getData(_ data:Data) {
print("The TLV was: \(data)")
}
prints:
The TLV was: 3 bytes
Thanks.