IntDataExtension extension
Data extension for int.
- on
Properties
- bits → String
-
Available on int, provided by the IntDataExtension extension
Returns thisintas a bits String.no setter - bits8 → String
-
Available on int, provided by the IntDataExtension extension
Returns thisintas a 8 bits String.no setter - bits16 → String
-
Available on int, provided by the IntDataExtension extension
Returns thisintas a 16 bits String.no setter - bits32 → String
-
Available on int, provided by the IntDataExtension extension
Returns thisintas a 32 bits String.no setter - bits64 → String
-
Available on int, provided by the IntDataExtension extension
Returns thisintas a 64 bits String.no setter - isSafeInteger → bool
-
Available on int, provided by the IntDataExtension extension
Returnstrueif thisintis safe for the current platform (DataSerializerPlatform).no setter
Methods
-
bitsPadded(
int width) → String -
Available on int, provided by the IntDataExtension extension
Returns thisintas a bits String of minimal lengthwidth. -
checkSafeInteger(
) → void -
Available on int, provided by the IntDataExtension extension
Checks if thisintis safe for the current platform (DataSerializerPlatform). -
int16ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aInt16to bytes (Uint8List). -
int32ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aInt32to bytes (Uint8List). -
int64ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aInt64to bytes (Uint8List). -
toHex32(
) → String -
Available on int, provided by the IntDataExtension extension
Converts this 32 bitsintto HEX. -
toHex64(
) → String -
Available on int, provided by the IntDataExtension extension
Converts this 64 bitsintto HEX. -
toStringPadded(
int width) → String -
Available on int, provided by the IntDataExtension extension
Converts to a String ofwidthand left padded with0. -
toUint8List32(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Converts this 32 bitsintto 4 bytes. -
toUint8List32Reversed(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Same as toUint8List32, but with bytes in reversed order. -
toUint8List64(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Converts this 64 bitsintto 8 bytes. -
toUint8List64Reversed(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Same as toUint8List64, but with bytes in reversed order. -
uInt16ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aUint16to bytes (Uint8List). -
uInt32ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aUint32to bytes (Uint8List). -
uInt64ToBytes(
) → Uint8List -
Available on int, provided by the IntDataExtension extension
Convertsthisas aUint64to bytes (Uint8List).