Interface IncrementalHash<T>

Builder for a hash or checksum. You can add data as it arrives, then obtain the final checksum when all the data was processed. This avoids having to read the data into memory all at once.

Type parameters

  • T

Hierarchy

  • IncrementalHash

Index

Properties

Properties

append

append: function

Includes the given data in the checksum calculation.

param

Additional data to add to the checksum computation.

Type declaration

    • (data: T): void
    • Parameters

      • data: T

      Returns void

finish

finish: function

Computes the final checksum based on all the data that was processed up until this point.

returns

The final computed checksum.

Type declaration

    • (): string
    • Returns string