init(from:)
Creates and returns a TLV record from by parsing the specified data.
Declaration
convenience init?(from data: Data)Parameters
- data:
A data object containing the serialized representation of a TLV record.
Return Value
A TLV record, or nil if data does not specify a valid record.