• Checksum returns the CRC-32 checksum of data using the polynomial represented by the Table.

    Parameters

    • data: any

      CRC-32 Checked data

    • poly: number

      CRC-32 polynomial

    Returns number

    Example


    import * as crc32 from 'crc32';

    crc32.checksum(data,0xedb88320)

    Description

    any | buffer.Buffer variable is any type or buffer.Buffer type