bufferToInt function

int bufferToInt(
  1. Uint8List buf
)

Converts a Uint8List to a int.

Implementation

int bufferToInt(Uint8List buf) {
  return decodeBigInt(toBuffer(buf)).toInt();
}