readEncoding static method

List readEncoding(
  1. Uint8List data,
  2. int offset,
  3. int len
)

Implementation

static List readEncoding(Uint8List data, int offset, int len) {
  List array = ['.notdef'];
  final format = data[offset];
  offset++;

  if (format == 0) {
    final nCodes = data[offset];
    offset++;
    for (int i = 0; i < nCodes; i++){
      array.add(data[offset + i]);
    }
  }
  else
    throw "error: unknown encoding format: $format";

  return array;
}