shortName property
String
shortName
Implementation
String get shortName {
switch (type) {
case 0xD8:
return "SOI";
case 0xC0:
return "SOF0";
case 0xC2:
return "SOF2";
case 0xC4:
return "DHT";
case 0xDB:
return "DQT";
case 0xDD:
return "DRI";
case 0xDA:
return "SOS";
case 0xFE:
return "COM";
case 0xD9:
return "EOI";
}
if (type >= 0xD0 && type <= 0xD7) {
return "RST${type - 0xD0}";
}
if (type >= 0xE0 && type <= 0xEF) {
return "APP${type - 0xE0}";
}
return "0x" + type.toRadixString(16);
}