Initializer

init(tag:value:)

Initializes a TLV record with the specified tag and value.

Declaration

init(tag: UInt8, value: Data)

Parameters

tag

The tag field of the record.

value

The value field of the record.

Return Value

A new TLV record containing the specified tag and value fields.