diff options
| author | Alexey Gavrilov <90127298+rebovas@users.noreply.github.com> | 2024-03-25 11:31:02 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 11:31:02 +0700 |
| commit | 91b4d8fa6bed598e2969f16a7a953e293a1b7f89 (patch) | |
| tree | 86bdf89403027760ce567927ec0f1af14d0e4a79 /include/StringOperations.h | |
| parent | 1abc315e02a33cd62194b93898263eefd46cbfab (diff) | |
| parent | bbac386769210a8ecccba5826cfaf75d431cc2af (diff) | |
Merge pull request #4 from rebovas/acpi_classes
Implementation ACPI tables through classes
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 |
