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