libxcks  0.1.0.1
ckvalue.hpp File Reference

Stores the value of a checksum. More...

Include dependency graph for ckvalue.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  libxcks::ChecksumValue
 Stores the value of a checksum. More...
 

Typedefs

using libxcks::ArrayChecksumValue = std::vector< ChecksumValue >
 Array of values of checksum. More...
 

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.hpp.

Typedef Documentation

◆ ArrayChecksumValue

using libxcks::ArrayChecksumValue = typedef std::vector<ChecksumValue>

Array of values of checksum.

Definition at line 113 of file ckvalue.hpp.

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.