From 378770164260767908ee58ed3e9d77a4c0c19838 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sat, 11 Feb 2023 19:03:29 +0100 Subject: [PATCH] docs: documented data to string conversion functions --- .wiki/Kernel-documentation.md | 44 ++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.wiki/Kernel-documentation.md b/.wiki/Kernel-documentation.md index 2d43158..af17b31 100644 --- a/.wiki/Kernel-documentation.md +++ b/.wiki/Kernel-documentation.md @@ -457,4 +457,46 @@ Returns the amount of chars a string has before it's null-terminator. #### `string_compare(a, b)` - function (bool) Returns **true** when the strings **_a_** and **_b_** are equal. -Returns **false** if they aren't equal. \ No newline at end of file +Returns **false** if they aren't equal. + +#### `string_unsigned_dec_to_alpha(string, value)` - function (void) +Converts the unsigned integer in **_value_** to an alphanumeric string. +The representation is decimal. +This string will be written into **_string_**. + +#### `string_dec_to_alpha(string, value)` - function (void) +Converts the signed integer in **_value_** to an alphanumeric string. +If it is negative it will be prefixed with a hyphen. +The representation is decimal. +This string will be written into **_string_**. + +#### `string_hex_8bit_to_alpha(string, value)` - function (void) +Converts the byte in **_value_** to an alphanumeric string. +The representation is hexadecimal. +This string will be written into **_string_**. + +#### `string_hex_16bit_to_alpha(string, value)` - function (void) +Converts the word(16-bits) in **_value_** to an alphanumeric string. +The representation is hexadecimal. +This string will be written into **_string_**. + +#### `string_hex_32bit_to_alpha(string, value)` - function (void) +Converts the dword(32-bits) in **_value_** to an alphanumeric string. +The representation is hexadecimal. +This string will be written into **_string_**. + +#### `string_hex_64bit_to_alpha(string, value)` - function (void) +Converts the qword(64-bits) in **_value_** to an alphanumeric string. +The representation is hexadecimal. +This string will be written into **_string_**. + +#### `string_bin_to_alpha(string, num_bits, value)` - function (void) +Converts the data in **_value_** to an alphanumeric string. +The representation is binary. +**_num_bits_** specifies how many bits, starting at the least significant bit, will be converted. +This string will be written into **_string_**. + +#### `string_bool_to_alpha(string, value`) - function (void) +Converts the boolean in **_value_** to an alphanumeric string. +The representation is `true` or `false`. +This string will be written into **_string_**. \ No newline at end of file