BinaryFormat<S extends NativeType, V> class
sealed
BinaryFormat<S, V> defines value handling
type V to and from a binary representation as an int,
It provides a declarative way to handle various data formats,
including integers, fixed-point numbers, booleans, signs, and enums,
with support for custom encoding/decoding logic through handlers.
V determines value conversion
- Implemented types
-
- BinaryCodec<
V>
- BinaryCodec<
- Mixed-in types
- Implementers
Properties
- binaryRange → ({int max, int min})
-
no setter
- bitWidth → int
-
no setterinherited
- byteSize → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSigned → bool
-
no setterinherited
- range → ({int max, int min})
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signExtension → int Function(int)?
-
no setterinherited
-
viewType
→ TypeKey<
V> -
no setter
Methods
-
clampBase(
int raw) → int -
inherited
-
decode(
int raw) → V -
override
-
encode(
V value) → int -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signedOf(
int raw) → int -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited