created doc for why2_get_memory_identifier
This commit is contained in:
parent
77005dc80b
commit
87d1c2b79c
@ -0,0 +1,37 @@
|
||||
<!--
|
||||
This is part of WHY2
|
||||
Copyright (C) 2022 Václav Šmejkal
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
# why2_get_memory_identifier
|
||||
|
||||
## Parameters
|
||||
|
||||
*This functions doesn't take any parameters.*
|
||||
|
||||
## Attributes
|
||||
|
||||
| | |
|
||||
| ------------------ | ---------------------------------------------- |
|
||||
| **Return type** | `char *` |
|
||||
| **Header comment** | `RETURNS STRING USED IN LINKED LIST (IN memory.c) FOR IDENTIFYING NODES WHEN RUNNING GARBAGE COLLECTOR` |
|
||||
| **Added in commit** | [`70335e67ad3e7ef3bc693741a03cb91962b91863`](https://github.com/ENGO150/WHY2/commit/70335e67ad3e7ef3bc693741a03cb91962b91863) |
|
||||
|
||||
## Description
|
||||
|
||||
Returns 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.
|
@ -57,6 +57,7 @@ You can find documentation for every *public* function of WHY2 below.
|
||||
| [`why2_get_encryption_operation`](./core/flags/getters/why2_get_encryption_operation) | Returns functions which is used for encryption & decryption |
|
||||
| [`why2_get_flags_changed`](./core/flags/getters/why2_get_flags_changed) | *This functions doesn't have any description.* |
|
||||
| [`why2_get_padding_changed`](./core/flags/getters/why2_get_padding_changed) | *This functions doesn't have any description.* |
|
||||
| [`why2_get_memory_identifier`](./core/flags/getters/why2_get_memory_identifier) | Returns string used in linked list (in memory.c) for identifying nodes when running garbage collector |
|
||||
|
||||
## Logger
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user