IntDataExtension extension

Data extension for int.

on

Properties

bits String

Available on int, provided by the IntDataExtension extension

Returns this int as a bits String.
no setter
bits8 String

Available on int, provided by the IntDataExtension extension

Returns this int as a 8 bits String.
no setter
bits16 String

Available on int, provided by the IntDataExtension extension

Returns this int as a 16 bits String.
no setter
bits32 String

Available on int, provided by the IntDataExtension extension

Returns this int as a 32 bits String.
no setter
bits64 String

Available on int, provided by the IntDataExtension extension

Returns this int as a 64 bits String.
no setter
isSafeInteger bool

Available on int, provided by the IntDataExtension extension

Returns true if this int is safe for the current platform (DataSerializerPlatform).
no setter

Methods

bitsPadded(int width) String

Available on int, provided by the IntDataExtension extension

Returns this int as a bits String of minimal length width.
checkSafeInteger() → void

Available on int, provided by the IntDataExtension extension

Checks if this int is safe for the current platform (DataSerializerPlatform).
int16ToBytes() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this as a Int16 to bytes (Uint8List).
int32ToBytes() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this as a Int32 to bytes (Uint8List).
int64ToBytes() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this as a Int64 to bytes (Uint8List).
toHex32() String

Available on int, provided by the IntDataExtension extension

Converts this 32 bits int to HEX.
toHex64() String

Available on int, provided by the IntDataExtension extension

Converts this 64 bits int to HEX.
toStringPadded(int width) String

Available on int, provided by the IntDataExtension extension

Converts to a String of width and left padded with 0.
toUint8List32() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this 32 bits int to 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 bits int to 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

Converts this as a Uint16 to bytes (Uint8List).
uInt32ToBytes() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this as a Uint32 to bytes (Uint8List).
uInt64ToBytes() Uint8List

Available on int, provided by the IntDataExtension extension

Converts this as a Uint64 to bytes (Uint8List).