encodeWithName static method

String encodeWithName(
  1. String name,
  2. Uint8List bytes
)

Encodes raw bytes using the requested base name.

Falls back to base32 if the name is unknown.

Implementation

static String encodeWithName(String name, Uint8List bytes) {
  final base = _baseFromName(name);
  return encode(base, bytes);
}