objectChecksum#

swordfish.function.objectChecksum()#

Calculate the checksum of a vector. The result is an integer. It is often used to verify data integrity.

参数:
  • vector (Constant) -- A vector that is used for calculating checksums.

  • prev (Constant, optional) -- An integer. If the vector is too long, the checksum can be computed iteratively by specifying prev which represents the checksum of the previous segment of data during iteration.