convertFromBase32 static method

List<int> convertFromBase32(
  1. List<int> data
)

Converts the input data from base32 encoding.

Parameters:

  • data: A List of integers representing the data in base32 encoding.

Returns: A List

Throws:

  • ArgumentException: If the data cannot be converted from base32.

Implementation

static List<int> convertFromBase32(List<int> data) {
  List<int>? convData = _convertBits(data, 5, 8, pad: false);
  if (convData == null) {
    throw const ArgumentException(
        'Invalid data, cannot perform conversion from base32');
  }

  return convData;
}