Sizes class
Utility class containing the sizes of different data types and helper methods to calculate the size of variable length data types.
Constructors
- Sizes()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
simpleString(
String string, [Encoding? encoding]) → int -
string(
String string, [Encoding? encoding]) → int -
Calculates the size of a string that uses the
encoding
or utf8Encoding by default.
Constants
- bool → const int
- The size of a bool in bytes.
- float32 → const int
- The size of a float32 in bytes.
- float64 → const int
- The size of a float64 in bytes.
- int8 → const int
- The size of a int8 in bytes.
- int16 → const int
- The size of a int16 in bytes.
- int32 → const int
- The size of a int32 in bytes.
- int64 → const int
- The size of a int64 in bytes.
- listIndex → const int
- The size of a listIndex in bytes.