Skip to content

Commit e8cc3f9

Browse files
Update README.md
1 parent 66c7ffc commit e8cc3f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ unsafe
4343
listOfInt32.Add(in i);//+ 4 byte, shift index memory.Current by 4 byte: memory.Current +=4;
4444
}
4545
//listOfInt32 is 200 byte
46-
list.ExpandCapacity(50);// + 200 byte
46+
list.ExpandCapacity(50);// + 200 byte: memory.Current +=200;
47+
list.TrimExcess();// - 200 byte: memory.Current -=200;
4748
//Do whatever you want with list of Int32 items
4849
}//return memory
4950

0 commit comments

Comments
 (0)