We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66c7ffc commit e8cc3f9Copy full SHA for e8cc3f9
README.md
@@ -43,7 +43,8 @@ unsafe
43
listOfInt32.Add(in i);//+ 4 byte, shift index memory.Current by 4 byte: memory.Current +=4;
44
}
45
//listOfInt32 is 200 byte
46
- list.ExpandCapacity(50);// + 200 byte
+ list.ExpandCapacity(50);// + 200 byte: memory.Current +=200;
47
+ list.TrimExcess();// - 200 byte: memory.Current -=200;
48
//Do whatever you want with list of Int32 items
49
}//return memory
50
0 commit comments