BorshFloatCodec class abstract
Float Codec
A codec for floating point numbers.
- Inheritance
- Mixed-in types
- Implementers
Constructors
- BorshFloatCodec.new()
-
Creates a codec for floating point numbers.
const
Properties
- byteLength → int
-
The number of bytes required to store
any
instance ofT
(i.e. max size).no setterinherited -
decoder
→ BorshDecoder<
double> -
Returns the decoder of
this
, converting fromT
to S.no setteroverride -
encoder
→ BorshEncoder<
double> -
Returns the encoder from S to
T
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Iterable< int> , double> -
Inverts
this
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cOption(
) → BorshOptionSizedCodec< double> -
Converts this codec to an c-option code of type
T
.inherited -
decode(
Iterable< int> encoded) → double -
Decodes
encoded
data.inherited -
encode(
double input) → Iterable< int> -
Encodes
input
.inherited -
fuse<
R> (Codec< Iterable< other) → Codec<int> , R>double, R> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
option(
) → BorshOptionSizedCodec< double> -
Converts this codec to an option code of type
T
.inherited -
pack(
BufferWriter buffer, double input) → void -
Writes
input
tobuffer
.inherited -
size(
double input) → int -
Returns the serialized byte length of
input
.override -
toString(
) → String -
A string representation of this object.
inherited
-
unpack(
BufferReader buffer) → double -
Reads
T
frombuffer
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited