From 44842dc44b795c8ba3b9b86e4cad1d895cd07416 Mon Sep 17 00:00:00 2001 From: Nik Date: Sun, 15 Oct 2023 21:15:12 +0200 Subject: [PATCH] includes/std: Added `std::mem::set_section_size` (#175) --- includes/std/mem.pat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/std/mem.pat b/includes/std/mem.pat index a79b530..3aa7105 100644 --- a/includes/std/mem.pat +++ b/includes/std/mem.pat @@ -180,6 +180,15 @@ namespace std::mem { return builtin::std::mem::get_section_size(section); }; + /** + Changes the size of a custom section + @param section The handle to the section + @param size The new size of the section + */ + fn set_section_size(Section section, u128 size) { + builtin::std::mem::set_section_size(section, size); + }; + /** Copies a range of bytes from one section into another @param from_section The section to copy from