Skip to content

Commit c144962

Browse files
Update Dispose.md
1 parent 93e3974 commit c144962

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

Documentation/Stack/Dispose.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
1-
# FreeMemory(nuint) Method
1+
# Dispose() Method
22

33
## Definition
4-
Free memory.
4+
Disposed the memory used by the collection.
55

66
```C#
7-
public void FreeMemory(nuint reducingBytes)
7+
public void Dispose()
88
```
99

10-
## Parameters
11-
reducingBytes nuint
12-
13-
Freed memory size in bytes
14-
15-
## Returns
16-
void
17-
18-
## Exceptions
19-
20-
```C#
21-
ObjectDisposedException
22-
```
23-
-or-
24-
25-
```C#
26-
Exception
27-
```
28-
If all memory is already free
29-
3010
## Remark
31-
Shifts the Current pointer by -reducingBytes
11+
If the instance was created using a [constructor on a pointer](https://github.com/SoftStoneDevelop/StackMemoryCollections/blob/main/Documentation/Stack/Constructor4.md) then: do nothing.

0 commit comments

Comments
 (0)