Google celebrates Hispanic Heritage Month. See how.

checkPadding method

void checkPadding (int offset, int padding)

Implementation

void checkPadding(int offset, int padding) {
  for (int readAt = offset; readAt < offset + padding; readAt++) {
    if (data.getUint8(readAt) != 0) {
      throw FidlError('Non-zero padding at: $readAt',
          FidlErrorCode.fidlInvalidPaddingByte);
    }
  }
}