findChunk method
Reads RIFF chunks until one is found that has the given identifier
. When
this function returns, the read head will either be just after the
identifier
(about to read the size), or at the end of the buffer.
Implementation
void findChunk(String identifier) {
while (!_checkString(identifier)) {
final size = readUint32();
skip(roundUpToEven(size));
}
}