readValue method

dynamic readValue(
  1. ID3Fragment fragment,
  2. int start, {
  3. List<int>? bytes,
})
inherited

Implementation

dynamic readValue(ID3Fragment fragment, int start, {List<int>? bytes}) {
  final sub = (bytes ?? this.bytes).sublist(start, fragment.length + start);
  if (fragment.needDecode) {
    return isoCodec.decode(sub);
  } else if (fragment.length == 1) {
    return sub.first;
  }
  return sub;
}