From 91a554f36af763394835f29ecdefdf2d6448a6c3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 31 Jan 2024 16:28:11 +0100 Subject: HEL: Adding BFileReader implementation. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/BootKit.hxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Private/NewBoot/BootKit') diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 6f0ee927..54f1d5d9 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -47,8 +47,9 @@ class BTextWriter final { BTextWriter(const BTextWriter &) = default; }; -HCore::SizeT BStrLen(const char *ptr); -HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); +HCore::SizeT BStrLen(const CharacterType *ptr); +HCore::SizeT BSetMem(CharacterType *src, const CharacterType byte, + const HCore::SizeT len); /** * @brief BootKit File Reader class @@ -56,7 +57,7 @@ HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); */ class BFileReader final { public: - explicit BFileReader(const char *path); + explicit BFileReader(const CharacterType *path); ~BFileReader() = default; HCore::VoidPtr ReadAll(); @@ -64,6 +65,9 @@ class BFileReader final { public: BFileReader &operator=(const BFileReader &) = default; BFileReader(const BFileReader &) = default; + + private: + CharacterType mPath[255]; }; /***********************************************************************************/ -- cgit v1.2.3