From 81bcbc74da189bfe5f3b1fd70ae83fb85a2ce859 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 11 May 2025 01:27:29 +0200 Subject: dev(feat:kernel): Working Core Layer of HeFS (Write/Read) Signed-off-by: Amlal --- dev/kernel/src/UtfUtils.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dev/kernel/src/UtfUtils.cc') diff --git a/dev/kernel/src/UtfUtils.cc b/dev/kernel/src/UtfUtils.cc index 079efb7b..ed0e4591 100644 --- a/dev/kernel/src/UtfUtils.cc +++ b/dev/kernel/src/UtfUtils.cc @@ -15,6 +15,16 @@ Size urt_string_len(const Utf8Char* str) { return len; } +Void urt_set_memory(const voidPtr src, UInt32 dst, Size len) { + Utf8Char* srcChr = reinterpret_cast(src); + Size index = 0; + + while (index < len) { + srcChr[index] = dst; + ++index; + } +} + Int urt_copy_memory(const voidPtr src, voidPtr dst, Size len) { Utf8Char* srcChr = reinterpret_cast(src); Utf8Char* dstChar = reinterpret_cast(dst); -- cgit v1.2.3