diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2024-03-25 11:24:38 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2024-03-25 11:24:38 +0700 |
| commit | bbac386769210a8ecccba5826cfaf75d431cc2af (patch) | |
| tree | 07e5602ec7c694e2302327de54163280a342d3c1 /include/StringOperations.h | |
| parent | d8a708d4a2c612c348cf7c108a7c1ad683b394d8 (diff) | |
Acpi classes + string operations
Diffstat (limited to 'include/StringOperations.h')
| -rw-r--r-- | include/StringOperations.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/StringOperations.h b/include/StringOperations.h new file mode 100644 index 0000000..81d7144 --- /dev/null +++ b/include/StringOperations.h @@ -0,0 +1,31 @@ +#ifndef STRINGOPERATIONS_H +#define STRINGOPERATIONS_H + +#include <types.h> + + +class MemArea +{ + private: + memAddr start, final; + public: + MemArea(); + MemArea(const memAddr start, const memAddr final); + memAddr begin(); + memAddr end(); + bool valid(); + + typedef memAddr iterator; +}; + +class StringOperations +{ + public: + // Return the starting address where is sequence is allocated + // else NULL + static void *findInMemory(const char *sequence, MemArea memory); + // Return size of ASCIZ sequence without 0-symbol, NULL on failure + static uint32 sequenceSize(const char *chars); +}; + +#endif |
