Tag

object Tag
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Tag.type

Type members

Classlikes

case object BigFloat extends Tag

The element following this tag is an array that contains exactly two integer numbers:

The element following this tag is an array that contains exactly two integer numbers:

  1. Exponent e with base 2 (must be Int or Long, i.e. BigNum is disallowed)
  2. Mantissa m (Int, Long or BigNum) The value of the bigfloat is is m*(2**e).
case object DateTimeString extends Tag

The element following this tag is a date/time string that follows the standard format described in [RFC3339], as refined by Section 3.3 of [RFC4287].

The element following this tag is a date/time string that follows the standard format described in [RFC3339], as refined by Section 3.3 of [RFC4287].

See also:
case object DecimalFraction extends Tag

The element following this tag is an array that contains exactly two integer numbers:

The element following this tag is an array that contains exactly two integer numbers:

  1. Exponent e with base 10 (must be Int or Long, i.e. BigNum is disallowed)
  2. Mantissa m (Int, Long or BigNum) The value of the decimal fraction is m*(10**e).

NOTE: This tag isn't actually ever produced by the CBOR parser, since it has built-in support for it and immediately produces a java.math.BigDecimal instead.

case object EmbeddedCBOR extends Tag

The element following this tag is a ByteString containing undecoded CBOR bytes.

The element following this tag is a ByteString containing undecoded CBOR bytes.

case object EpochDateTime extends Tag

The element following this tag is a numerical representation of seconds relative to 1970-01-01T00:00Z in UTC time. (For the non-negative values that the Portable Operating System Interface (POSIX) defines, the number of seconds is counted in the same way as for POSIX "seconds since the epoch" [TIME_T].) The tagged item can be an Int, Long, Float or Double. Note that the number can be negative (time before 1970-01-01T00:00Z) and, if a floating-point number, indicate fractional seconds.

The element following this tag is a numerical representation of seconds relative to 1970-01-01T00:00Z in UTC time. (For the non-negative values that the Portable Operating System Interface (POSIX) defines, the number of seconds is counted in the same way as for POSIX "seconds since the epoch" [TIME_T].) The tagged item can be an Int, Long, Float or Double. Note that the number can be negative (time before 1970-01-01T00:00Z) and, if a floating-point number, indicate fractional seconds.

case object HintBase16 extends Tag

The element following this tag is a byte string, which should be base16-encoded in potential downstream text-based representation like JSON.

The element following this tag is a byte string, which should be base16-encoded in potential downstream text-based representation like JSON.

case object HintBase64 extends Tag

The element following this tag is a byte string, which should be base64-encoded in potential downstream text-based representation like JSON.

The element following this tag is a byte string, which should be base64-encoded in potential downstream text-based representation like JSON.

case object HintBase64url extends Tag

The element following this tag is a byte string, which should be base64url-encoded in potential downstream text-based representation like JSON.

The element following this tag is a byte string, which should be base64url-encoded in potential downstream text-based representation like JSON.

case object MagicHeader extends Tag

A "NOP" tag without any semantic meaning whatsoever for the following data item. It does have a somewhat unique wire-format making it suitable as a "magic header" in cases where the content of encoding type of serialized bytes needs to be disambiguated by simply analyzing the bytes themselves.

A "NOP" tag without any semantic meaning whatsoever for the following data item. It does have a somewhat unique wire-format making it suitable as a "magic header" in cases where the content of encoding type of serialized bytes needs to be disambiguated by simply analyzing the bytes themselves.

case object NegativeBigNum extends Tag

The element following this tag is a byte string data item, which is interpreted as an unsigned integer n in network byte order. The semantic value is -1 - n. There might be leading zeroes!

The element following this tag is a byte string data item, which is interpreted as an unsigned integer n in network byte order. The semantic value is -1 - n. There might be leading zeroes!

NOTE: This tag isn't actually ever produced by the CBOR parser, since it has built-in support for it and immediately produces a java.math.BigInteger instead.

final case class Other(value: Long) extends Tag

A tag value whose semantics are unknown to this encoder/decoder.

A tag value whose semantics are unknown to this encoder/decoder.

case object PositiveBigNum extends Tag

The element following this tag is a byte string data item, which is interpreted as an unsigned integer n in network byte order. There might be leading zeroes!

The element following this tag is a byte string data item, which is interpreted as an unsigned integer n in network byte order. There might be leading zeroes!

NOTE: This tag isn't actually ever produced by the CBOR parser, since it has built-in support for it and immediately produces a java.math.BigInteger instead.

case object TextBase64 extends Tag

The element following this tag is a Text element containing base64-encoded data.

The element following this tag is a Text element containing base64-encoded data.

See also:
case object TextBase64Url extends Tag

The element following this tag is a Text element containing base64url-encoded data.

The element following this tag is a Text element containing base64url-encoded data.

See also:
case object TextMime extends Tag

The element following this tag is a Text element containing a MIME message (including all headers), as defined in RFC2045.

The element following this tag is a Text element containing a MIME message (including all headers), as defined in RFC2045.

See also:
case object TextRegex extends Tag

The element following this tag is a Text element containing a regular expression in Perl Compatible Regular Expressions (PCRE) / JavaScript syntax.

The element following this tag is a Text element containing a regular expression in Perl Compatible Regular Expressions (PCRE) / JavaScript syntax.

See also:
case object TextUri extends Tag

The element following this tag is a Text element containing a URI as defined in RFC3986.

The element following this tag is a Text element containing a URI as defined in RFC3986.

See also:

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Implicits

Implicits

implicit val codec: Codec[Tag]