integer library
integer
library allows you to use custom bit-width integers via getters
and datatypes
Datatypes exposed by this library allows you to seamlessly use operators and functions without worrying about overflow and without having to convert values back to the appropriate formats periodically.
Remember that the custom bit-width integers are not stored in smaller bit-width variables. This is due to a limitation of Dart's VM.
Classes
- i16
- 16-bit Signed Integer
- i2
- 2-bit Signed Integer
- i32
- 32-bit Signed Integer
- i4
- 4-bit Signed Integer
- i64
- 64-bit Signed Integer
- i8
- 8-bit Signed Integer
- integer
- Baseclass for custom bit-width integers
- ix
- Signed Integer with custom bit-width
- signed
-
signed
represent an signed integer. This is the base class for all signed integer datatypes - u1
- 1-bit Unsigned Integer
- u16
- 16-bit Unsigned Integer
- u2
- 2-bit Unsigned Integer
- u32
- 32-bit Unsigned Integer
- u4
- 4-bit Unsigned Integer
- u63
- 63-bit Unsigned Integer
- u8
- 8-bit Unsigned Integer
- unsigned
-
unsigned
represent an unsigned integer. This is the base class for all unsigned integer datatypes - ux
- Unsigned Integer with custom bit-width
Extensions
- SignedIntegerExtension on int
- Extensions providing getters that return signed integer datatypes
- UnsignedIntegerExtension on int
- Extensions providing getters that return unsigned integer datatypes