Struct class

The is a class with struct information used in this apk.

This function packs the data to the request format

Uint8List toPack = Struct.pack(
  format, //only ones applied is '<I' or '<b'
  value, //int that will be changed to the requested format
);

This function unpacks the data to the requested format

int toUnpack = Struct.unpack(
  format, //only ones applied is '<I' or '<b'
  value, //Uint8List to be converted to requested format
);

This returns a List

List<int> toDivde = Struct.divmod(
  a, // diveded
  b, //divisor
);

This returns the sum of the provided list

int summation = Struct.sum(List<int>);

Constructors

Struct()

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

divmod(num a, num b) List<int>
This returns a List
pack(String format, int value) Uint8List
This function packs the data to the request format
sum(List<int> list) int
This returns the sum of the provided list
unpack(String format, Uint8List value) int
This function unpacks the data to the requested format