/* ------------------------------------------- Copyright (C) 2025, Amlal El Mahrouss, all rights reserved. ------------------------------------------- */ #include namespace Kernel { Size urt_string_len(const Utf8Char* str) { SizeT len{0}; while (str[len] != u'\0') ++len; return len; } Int urt_copy_memory(const voidPtr src, voidPtr dst, Size len) { Utf8Char* srcChr = reinterpret_cast(src); Utf8Char* dstChar = reinterpret_cast(dst); Size index = 0; while (index < len) { dstChar[index] = srcChr[index]; ++index; } return index; } } // namespace Kernel