CborFloat

class CborFloat(val value: Float) : DataItem

Single-precision floating point number (major type 7).

Parameters

value

the value.

Constructors

Link copied to clipboard
constructor(value: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The value of a CborArray data item.

Link copied to clipboard

The value of a Simple data item containing either true/false.

Link copied to clipboard

The value of a Bstr data item.

Link copied to clipboard

The value of a data item containing a COSE_Key.

Link copied to clipboard

The value of a data item containing a COSE label (either number or string)

Link copied to clipboard

The value of a data item containing a COSE_Mac0.

Link copied to clipboard

The value of a data item containing a COSE_Sign1.

Link copied to clipboard
val asDateString: LocalDate

The date-time from a tstr with tag Tagged.FULL_DATE_STRING.

Link copied to clipboard
val asDateTimeString: Instant

The date-time from a tstr with tag Tagged.DATE_TIME_STRING.

Link copied to clipboard

The value of a Double data item.

Link copied to clipboard

The value of a Float data item.

Link copied to clipboard

The value of a CborMap data item.

Link copied to clipboard

The value of a Uint or Nint data item.

Link copied to clipboard

The value of a Tagged data item.

Link copied to clipboard

The decoded CBOR from a bstr with tag Tagged.ENCODED_CBOR.

Link copied to clipboard

The value of a Tstr data item.

Link copied to clipboard

The value of a data item containing a certificate.

Link copied to clipboard

The value of a data item containing a certificate chain.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(key: Long): DataItem

Gets the value of a key in a map or an index in an array

operator fun get(key: String): DataItem
operator fun get(key: DataItem): DataItem

Gets the value of a key in a map.

Link copied to clipboard
fun getOrDefault(key: Long, defaultValue: DataItem): DataItem
fun getOrDefault(key: String, defaultValue: DataItem): DataItem
fun getOrDefault(key: DataItem, defaultValue: DataItem): DataItem

Gets the value of a key in a map or a default value if the key doesn't exist.

Link copied to clipboard
fun getOrNull(key: Long): DataItem?

Gets the value of a key in a map or null if the key doesn't exist.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun hasKey(key: Long): Boolean
fun hasKey(key: String): Boolean

Returns whether a map has a value for a given key

Link copied to clipboard
open override fun toString(): String