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 this int is safe for the current platform (DataSerializerPlatform).
no setter

Methods

bitsPadded(int width) String
Returns this int as a bits String of minimal length width.
checkSafeInteger() → void
Checks if this int is safe for the current platform (DataSerializerPlatform).
int16ToBytes() Uint8List
Converts this as a Int16 to bytes (Uint8List).
int32ToBytes() Uint8List
Converts this as a Int32 to bytes (Uint8List).
int64ToBytes() Uint8List
Converts this as a Int64 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 with 0.
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 a Uint16 to bytes (Uint8List).
uInt32ToBytes() Uint8List
Converts this as a Uint32 to bytes (Uint8List).
uInt64ToBytes() Uint8List
Converts this as a Uint64 to bytes (Uint8List).