CborInt class abstract
A CBOR integer or big number.
Because CBOR integers can be up to 64-bit, which JS cannot represent, they are converted to BigInt.
If the incoming value has less than 53 bits, it is CborSmallInt.
- Inheritance
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Additional tags provided to the value.
no setterinherited
Methods
-
encode(
EncodeSink sink) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBigInt(
) → BigInt - Return the value as a BigInt.
-
toInt(
) → int - Return the value as int.
-
toJson(
{Object? substituteValue, bool allowMalformedUtf8 = false}) → Object? -
Transform this into a JSON encodable value.
inherited
-
toJsonInternal(
Set< Object> cyclicCheck, ToJsonOptions o) → Object? -
inherited
-
toObject(
{bool parseDateTime = true, bool parseUri = true, bool decodeBase64 = false, bool allowMalformedUtf8 = false}) → Object? -
Transforms the CborValue into a Dart object.
inherited
-
toObjectInternal(
Set< Object> cyclicCheck, ToObjectOptions o) → Object? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited