Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

IDocumentChecksumSupport Interface

interface Checksum.IDocumentChecksumSupport {

    // Methods
    ${calculateAsync}(algorithms?: (string | ${Checksum.CustomCRC} | ${Checksum.CustomFNV})[], range?: ${ISelection}): Promise<${Checksum.Result}[]>;
    ${calculateAsync#calculateAsync1}(algorithm: string | ${Checksum.CustomCRC} | ${Checksum.CustomFNV}, range?: ${ISelection}): Promise<${Checksum.Result}[]>;
    ${getResult}(algorithmId: string): ${Checksum.Result};
}
// This interface is not available in managed environment
// This interface is not available in native environment

Checksum.IDocumentChecksumSupport Methods

calculateAsync

calculateAsync(algorithms?: (string | ${Checksum.CustomCRC} | ${Checksum.CustomFNV})[], range?: ${ISelection}): Promise<${Checksum.Result}[]>;
// This method is not available in managed environment
// This method is not available in native environment
algorithms
An array of algorithm IDs or custom algorithm parameter objects. If specified empty array or parameter omitted, all algorithms which are currently enabled in UI are calculated.
range
Optional multiple selection object to calculate checksums/hashes for. If omitted, the whole document is used.

A promise that resolves to an array of Result objects, each for one of requested algorithms.

Calculate checksums/hashes asynchronously.

calculateAsync

calculateAsync(algorithm: string | ${Checksum.CustomCRC} | ${Checksum.CustomFNV}, range?: ${ISelection}): Promise<${Checksum.Result}[]>;
// This method is not available in managed environment
// This method is not available in native environment
algorithm
Algorithm ID or custom algorithm parameter object.
range
Optional multiple selection object to calculate checksums/hashes for. If omitted, the whole document is used.

Calculate single checksum/hash asynchronously.

getResult

getResult(algorithmId: string): ${Checksum.Result};
// This method is not available in managed environment
// This method is not available in native environment
algorithmId
Algorithm ID. Must be one of the Checksum constants.

Get previously calculated checksum/hash result.