Closed ugorji closed 6 years ago
Some formats like to use numeric codes for the fields. This means that they define a set of fields, assign numeric codes to them, and encode those numeric codes in the encoded stream.
For example, DOTS specification required integer type cbor key element (see 6. Mapping Parameters to CBOR in https://datatracker.ietf.org/doc/draft-ietf-dots-signal-channel/ )
As it is still a structured field, a struct is the natural programming construct.
We should support this natively.
See #222
Fixed via 4d084a865916fe7ff62fa96d585e50820da2fdfb
Some formats like to use numeric codes for the fields. This means that they define a set of fields, assign numeric codes to them, and encode those numeric codes in the encoded stream.
For example, DOTS specification required integer type cbor key element (see 6. Mapping Parameters to CBOR in https://datatracker.ietf.org/doc/draft-ietf-dots-signal-channel/ )
As it is still a structured field, a struct is the natural programming construct.
We should support this natively.
See #222