Files
fprime/Utils/Hash/HashCommon.cpp
Joshua Anderson 9c4f2cc6c8 Backport 80char replacement (#923)
* Backport replacement of EightyCharacterString with Fw::String

* Remove test usage of 80 charater strings
2021-08-20 16:05:52 -07:00

28 lines
624 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);
}
NATIVE_UINT_TYPE 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;
}
}