Get the checksum for a descriptor.

Synopsis

Declared in <script/descriptor.h>

std::string
GetDescriptorChecksum(std::string const& descriptor);

Description

  • If it already has one, and it is correct, return the checksum in the input.

  • If it already has one that is wrong, return "".

  • If it does not already have one, return the checksum that would need to be added.

Return Value

The descriptor checksum, or an empty string if the existing one is wrong.

Parameters

Name

Description

descriptor [in]

The descriptor string to checksum.

Created with MrDocs