F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
HashCommon.cpp
Go to the documentation of this file.
1 #include <Utils/Hash/Hash.hpp>
2 
3 namespace Utils {
4 
7 }
8 
9 void Hash ::addFileExtension(const Fw::StringBase& baseName, Fw::StringBase& extendedName) {
10  extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
11 }
12 
14  // Size of returns the size including the '\0' character.
15  // We want to return just the size of the string.
16  return sizeof(HASH_EXTENSION_STRING) - 1;
17 }
18 
19 } // namespace Utils
PlatformSizeType FwSizeType
static void addFileExtension(const Fw::StringBase &baseName, Fw::StringBase &extendedName)
Definition: HashCommon.cpp:9
static FwSizeType getFileExtensionLength()
Definition: HashCommon.cpp:13
static const char * getFileExtensionString()
Definition: HashCommon.cpp:5
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:55
#define HASH_EXTENSION_STRING
Definition: CRC32.hpp:25
virtual const CHAR * toChar() const =0