Skip to content

Commit 4e98449

Browse files
Update README.md
1 parent 69db08c commit 4e98449

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ Usage:
3434
```C#
3535
unsafe
3636
{
37-
using (var memory = new Struct.StackMemory(sizeof(int) * 100))//Allocate memory for all your collections.
37+
using (var memory = new Struct.StackMemory(sizeof(int) * 100))//Allocate memory for all your collections 400 byte.
3838
{
3939
{
40-
using var listOfInt32 = new Struct.ListOfInt32(50, &memory);
41-
list.ExpandCapacity(50);
40+
using var listOfInt32 = new Struct.ListOfInt32(50, &memory);//50 * 4 = 200 byte
41+
list.ExpandCapacity(50);// + 200 byte
4242
//Do whatever you want with list of Int32 items
4343
}//return memory
4444
45-
var listOfInt64 = new Struct.ListOfInt64(50, &memory);//get memory
45+
var listOfInt64 = new Struct.ListOfInt64(50, &memory);//get memory 400 byte
4646
//Do whatever you want with list of Int64 items
4747
}//free all memory
4848
}

0 commit comments

Comments
 (0)