convert method

  1. @override
String convert(
  1. List<int> input
)
override

Converts a byte array to a hexadecimal string.

Parameters:

  • input: The byte array to encode

Returns: Hexadecimal string representation

Implementation

@override
String convert(final List<int> input){
  final StringBuffer buffer = StringBuffer();
  for(final int byte in input)
    buffer.write(byte.toRadixString(_radix).padLeft(_charactersPerByte, "0"));
  return buffer.toString();
}