IntDataExtension extension
Data extension for int
.
- on
Properties
- bits → String
-
Returns this
int
as a bits String.no setter - bits8 → String
-
Returns this
int
as a 8 bits String.no setter - bits16 → String
-
Returns this
int
as a 16 bits String.no setter - bits32 → String
-
Returns this
int
as a 32 bits String.no setter - bits64 → String
-
Returns this
int
as a 64 bits String.no setter - isSafeInteger → bool
-
Returns
true
if thisint
is safe for the current platform (DataSerializerPlatform).no setter
Methods
-
bitsPadded(
int width) → String -
Returns this
int
as a bits String of minimal lengthwidth
. -
checkSafeInteger(
) → void -
Checks if this
int
is safe for the current platform (DataSerializerPlatform). -
int16ToBytes(
) → Uint8List -
Converts
this
as aInt16
to bytes (Uint8List). -
int32ToBytes(
) → Uint8List -
Converts
this
as aInt32
to bytes (Uint8List). -
int64ToBytes(
) → Uint8List -
Converts
this
as aInt64
to bytes (Uint8List). -
toHex32(
) → String -
Converts this 32 bits
int
to HEX. -
toHex64(
) → String -
Converts this 64 bits
int
to HEX. -
toStringPadded(
int width) → String -
Converts to a String of
width
and left padded with0
. -
toUint8List32(
) → Uint8List -
Converts this 32 bits
int
to 4 bytes. -
toUint8List32Reversed(
) → Uint8List - Same as toUint8List32, but with bytes in reversed order.
-
toUint8List64(
) → Uint8List -
Converts this 64 bits
int
to 8 bytes. -
toUint8List64Reversed(
) → Uint8List - Same as toUint8List64, but with bytes in reversed order.
-
uInt16ToBytes(
) → Uint8List -
Converts
this
as aUint16
to bytes (Uint8List). -
uInt32ToBytes(
) → Uint8List -
Converts
this
as aUint32
to bytes (Uint8List). -
uInt64ToBytes(
) → Uint8List -
Converts
this
as aUint64
to bytes (Uint8List).