libxcks  0.1.0.1
ckvalue.cpp File Reference

Stores the value of a checksum. More...

#include <algorithm>
#include <utility>
#include <stdexcept>
#include <cstring>
#include <cassert>
#include <cctype>
#include "libxcks/ckvalue.hpp"
#include "libxcks/ckfactory.hpp"
Include dependency graph for ckvalue.cpp:

Go to the source code of this file.

Functions

bool LIBXCKS_SO_EXPORT libxcks::hasChecksumValueWithAlgoId (const ArrayChecksumValue &ckvalues, const ChecksumAlgoId type)
 Checks if the array as a value of the given type. More...
 
void LIBXCKS_SO_EXPORT libxcks::getNullValues (ArrayChecksumValue &values, const ArrayChecksumAlgoId &ids)
 Gets an array of null checksums' values from an array of checksums ids. More...
 

Detailed Description

Stores the value of a checksum.

Definition in file ckvalue.cpp.

Function Documentation

◆ getNullValues()

void libxcks::getNullValues ( ArrayChecksumValue values,
const ArrayChecksumAlgoId ids 
)

Gets an array of null checksums' values from an array of checksums ids.

Note
values is cleared before adding new null values.
Parameters
[out]valuesThe array of null values created from the checksums' ids.
[in]idsThe array of checksums' ids we want to create null values.

Definition at line 482 of file ckvalue.cpp.

◆ hasChecksumValueWithAlgoId()

bool libxcks::hasChecksumValueWithAlgoId ( const ArrayChecksumValue ckvalues,
const ChecksumAlgoId  type 
)

Checks if the array as a value of the given type.

Parameters
[in]ckvaluesThe array of checksums' values.
[in]typeThe type of the checksum's value to find.
Returns
true if a checksum's value of type has been found in the given array, false otherwise.

Definition at line 456 of file ckvalue.cpp.