Skip to content

Commit

Permalink
CBOR: document predefined tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jul 1, 2024
1 parent dc07e3c commit 49b3ea2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import kotlinx.serialization.*
@Target(AnnotationTarget.PROPERTY)
@ExperimentalSerializationApi
public annotation class ValueTags(@OptIn(ExperimentalUnsignedTypes::class) vararg val tags: ULong) {

/**
* Contains a set of predefined tags, named in accordance with
* [RFC 8949 3.4. Tagging of Items](https://datatracker.ietf.org/doc/html/rfc8949#name-tagging-of-items)
*/
public companion object {
public const val DATE_TIME_STANDARD: ULong = 0u;
public const val DATE_TIME_EPOCH: ULong = 1u;
Expand Down

0 comments on commit 49b3ea2

Please sign in to comment.