readFeatureList static method

List<Map<String, dynamic>> readFeatureList(
  1. Uint8List data,
  2. int offset
)

Implementation

static List<Map<String,dynamic>> readFeatureList(Uint8List data, int offset) {
  final offset0 = offset;
  List<Map<String,dynamic>> obj = [];

  final count = TyprBin.readUshort(data, offset);
  offset += 2;

  for (int i = 0; i < count; i++) {
    final tag = TyprBin.readASCII(data, offset, 4);
    offset += 4;
    final noff = TyprBin.readUshort(data, offset);
    offset += 2;
    final feat = readFeatureTable(data, offset0 + noff);
    feat["tag"] = tag.trim();
    obj.add(feat);
  }
  return obj;
}