From 4d0b3e21bc3b50b11e09994db6a354883a609bd8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 2 Jul 2024 18:00:05 +0200 Subject: [PATCH] includes/std: Added better documentation to std::mem::current_bit_offset() --- includes/std/mem.pat | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/std/mem.pat b/includes/std/mem.pat index dc33348..47a133d 100644 --- a/includes/std/mem.pat +++ b/includes/std/mem.pat @@ -132,14 +132,6 @@ namespace auto std::mem { return builtin::std::mem::read_string(address, size); }; - - /** - Gets the current bit offset within the current byte that a bitfield will read. - */ - fn current_bit_offset() { - return builtin::std::mem::current_bit_offset(); - }; - /** Reads a number of bits from the specified bit offset within the specified byte @param byteOffset The byte offset within the data @@ -211,6 +203,14 @@ namespace auto std::mem { builtin::std::mem::copy_value_to_section(value, to_section, to_address); }; + /** + Returns the current bit offset when inside of a bitfield. + @return The current bit offset between 0 and 7 + */ + fn current_bit_offset() { + return builtin::std::mem::current_bit_offset(); + }; + /** Searches for a sequence of bytes and places the given type at that address