Data

extension Data
  • Calculates the CRC32 checksum of the receiver.

    Declaration

    Swift

    @inline(__always)
    public func crc32(checksum: CRC32) -> CRC32

    Parameters

    checksum

    The starting seed.

    Return Value

    The checksum calcualted from the bytes of the receiver and the starting seed.