padCount method

  1. @override
int padCount(
  1. Uint8List data
)
override

Get the number of pad bytes present in the block.

Implementation

@override
int padCount(Uint8List data) {
  int count = data.length;
  while (count > 0) {
    if (data[count - 1] != 0) {
      break;
    }
    count--;
  }
  return data.length - count;
}