init(type:length:_:)
Create TLV with the specified sizes for the type and length fields.
Declaration
init<T, L, BelowProtocol>(type: T.Type, length: L.Type, @ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where T : Sendable, T : UnsignedInteger, L : Sendable, L : UnsignedInteger, BelowProtocol : MessageProtocolParameters
- type:
The object type to use for the
typefield. - length:
The object type to use for the
lengthfield. - builder:
The protocol stack below TLV.