File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ Usage:
3434``` C#
3535unsafe
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 }
You can’t perform that action at this time.
0 commit comments