IBM COS SDK for JavaScript V2 - v1.0.0
    Preparing search index...

    Implements CRC-64/NVME checksum algorithm.

    This class provides CRC-64 checksum calculation using the NVMe polynomial (0x9a6c9329ac4bc9b5). It uses an 8-slice lookup table for efficient computation.

    const checksum = new Crc64Nvme();
    checksum.update(new Uint8Array([1, 2, 3]));
    const result = await checksum.digest();

    Implements

    • Checksum
    Index

    Constructors

    Methods

    Constructors

    • Returns Crc64Nvme

    Methods

    • Adds a chunk of data for which checksum needs to be computed. This can be called many times with new data as it is streamed.

      Implementations may override this method which passes second param which makes Checksum object stateless.

      Parameters

      • data: Uint8Array

      Returns void

    • Returns the digest of all of the data passed.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Resets the checksum to its initial value.

      Returns void