checkDecodedLength function
Implementation
int checkDecodedLength(int written, int? expectedLength) {
if (expectedLength != null && written != expectedLength) {
throw FormatException(
'Expected $expectedLength decompressed bytes, decoded $written',
);
}
return written;
}