decode static method
Decodes the FrameHeader
Returns null if the FrameHeader could not be decoded
Implementation
static Id3v2FrameHeader? decode(Id3v2Header header, List<int> bytes, int startIndex) {
switch (header.majorVersion) {
case 4:
return Id3v24FrameHeader.decode(header, bytes, startIndex);
case 3:
return Id3v23FrameHeader.decode(header, bytes, startIndex);
case 2:
return Id3v22FrameHeader.decode(header, bytes, startIndex);
}
return null;
}