base16encode function

String base16encode(
  1. List<int> bytes
)

Encodes a byte array to a Base16 (hexadecimal) string.

Convenience function that uses the default base16codec instance.

Parameters:

  • bytes: The byte array to encode

Returns: Hexadecimal string representation

Example:

List<int> data = [255, 0, 128];
String hex = base16encode(data); // Returns "ff0080"

Implementation

String base16encode(final List<int> bytes) => base16codec.encode(bytes);