padCount method
return the number of pad bytes present in the block.
Implementation
@override
int padCount(Uint8List data) {
var count = data.length - 1;
while (count > 0 && data[count] == 0) {
count--;
}
if (data[count] != 0x80) {
throw ArgumentError('pad block corrupted');
}
return data.length - count;
}