From a9150a44f571d1db6ca28289b296d5f8e44176f9 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 Jan 2025 18:28:24 +0100 Subject: [PATCH] created doc for why2_set_memory_identifier --- .../setters/why2_set_memory_identifier.md | 39 +++++++++++++++++++ docs/functions/index.md | 1 + 2 files changed, 40 insertions(+) create mode 100644 docs/functions/core/flags/setters/why2_set_memory_identifier.md diff --git a/docs/functions/core/flags/setters/why2_set_memory_identifier.md b/docs/functions/core/flags/setters/why2_set_memory_identifier.md new file mode 100644 index 0000000..1c80aa8 --- /dev/null +++ b/docs/functions/core/flags/setters/why2_set_memory_identifier.md @@ -0,0 +1,39 @@ + + +# why2_set_memory_identifier + +## Parameters + +| Identifier | Data type | +| ----------------------- | --------- | +| `new_memory_identifier` | `char *` | + +## Attributes + +| | | +| ------------------ | ---------------------------------------------- | +| **Return type** | `void` | +| **Header comment** | *This functions doesn't have any description.* | +| **Added in commit** | [`70335e67ad3e7ef3bc693741a03cb91962b91863`](https://github.com/ENGO150/WHY2/commit/70335e67ad3e7ef3bc693741a03cb91962b91863) | + +## Description + +Sets string, which is used in garbage collector for identifying (separating) nodes. + +Every allocation has its own ID, which is set to lastly used `memory_identifier`. This separates allocations in code to blocks and you can run GC with the `memory_identifier` to deallocate those blocks. \ No newline at end of file diff --git a/docs/functions/index.md b/docs/functions/index.md index 54b2dc6..e42087f 100644 --- a/docs/functions/index.md +++ b/docs/functions/index.md @@ -68,6 +68,7 @@ You can find documentation for every *public* function of WHY2 below. | [`why2_set_key_length`](./core/flags/setters/why2_set_key_length) | *This functions doesn't have any description.* | | [`why2_set_flags`](./core/flags/setters/why2_set_flags) | *This functions doesn't have any description.* | | [`why2_set_encryption_operation`](./core/flags/setters/why2_set_encryption_operation) | *This functions doesn't have any description.* | +| [`why2_set_memory_identifier`](./core/flags/setters/why2_set_memory_identifier) | *This functions doesn't have any description.* | ## Logger