summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/NeKit/Utils.h
diff options
context:
space:
mode:
author0xf00sec <159052166+0xf00sec@users.noreply.github.com>2025-06-22 15:54:12 +0300
committerGitHub <noreply@github.com>2025-06-22 15:54:12 +0300
commit4d18ce78a0ba66787a91db8103bfd2bb733e0910 (patch)
treeb807094ef7c35802b0cb7e62eaf8ce09881bd1e9 /dev/kernel/NeKit/Utils.h
parentb1658f93dc1157e7883d381b0316a60e760fe557 (diff)
rt_copy_memory to rt_copy_memory_safe
Diffstat (limited to 'dev/kernel/NeKit/Utils.h')
-rw-r--r--dev/kernel/NeKit/Utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/kernel/NeKit/Utils.h b/dev/kernel/NeKit/Utils.h
index 43526fc8..11566008 100644
--- a/dev/kernel/NeKit/Utils.h
+++ b/dev/kernel/NeKit/Utils.h
@@ -1,4 +1,3 @@
-
/* -------------------------------------------
Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
@@ -29,6 +28,10 @@ Int rt_to_lower(Int c);
voidPtr rt_string_in_string(const Char* in, const Char* needle);
char* rt_string_has_char(Char* str, Char chr);
+// Safe memory functions
+Int rt_copy_memory_safe(const voidPtr src, voidPtr dst, Size len, Size dst_size);
+voidPtr rt_set_memory_safe(voidPtr dst, UInt32 value, Size len, Size dst_size);
+
/// UNICODE API
Int urt_string_cmp(const Char* src, const Char* cmp, Size len);