VorbisComment constructor
Implementation
VorbisComment(bool isLast, Uint8List rawData, int dataLength)
: super(BlockType.VORBIS_COMMENT, isLast, rawData, dataLength) {
vendorLength = _reader.getLittleEndianInt();
vendorString = _reader.getString(vendorLength * 8);
numComments = _reader.getLittleEndianInt();
for (var i = 0; i < numComments; i++) {
var len = _reader.getLittleEndianInt();
if (len > 0) {
var comment = _reader.getUint8List(len * 8);
comments.add(utf8.decode(comment));
}
}
}