mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 13:54:34 -06:00
* NATIVE_INT_TYPE use in toString * NATIVE_INT_TYPE use in SimpleObjRegistry * NATIVE_INT_TYPE use in Asserts * NATIVE_INT_TYPE use in Fw/Comp * NATIVE_INT_TYPE use in getCapacity * NATIVE_INT_TYPE use in getEntries * NATIVE_INT_TYPE use in size/length * NATIVE_INT_TYPE use in FILE_NAME_ARG * NATIVE_INT_TYPE use in Fw (misc) * NATIVE_INT_TYPE use in identifier * NATIVE_INT_TYPE use in Fw (misc II) * POINTER_CAST in Buffer * POINTER_CAST in Serializable * sp * Removing no longer used DefaultTypes.hpp * Fixes to accomidate Fw refactor * Unit-test and CI fixes * Fixing review comments - pt 1
28 lines
618 B
C++
28 lines
618 B
C++
#include <Utils/Hash/Hash.hpp>
|
|
|
|
namespace Utils {
|
|
|
|
const char* Hash ::
|
|
getFileExtensionString()
|
|
{
|
|
return HASH_EXTENSION_STRING;
|
|
}
|
|
|
|
void Hash ::
|
|
addFileExtension(
|
|
const Fw::StringBase& baseName,
|
|
Fw::StringBase& extendedName
|
|
) {
|
|
extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
|
|
}
|
|
|
|
FwSizeType Hash ::
|
|
getFileExtensionLength()
|
|
{
|
|
// Size of returns the size including the '\0' character.
|
|
// We want to return just the size of the string.
|
|
return sizeof(HASH_EXTENSION_STRING) - 1;
|
|
}
|
|
|
|
}
|