This will allow you to have an int array that grows and shrinks. It will also grow automatically if you try to set something above what is allocated for it.
This also allows for temp int arrays.
This uses DMA but many failsafe have been put in so that should not be a problem.
questions? bugs? comments?
if you want more features just ask!
couple things. (I need to put in readmes.)
resize doesn't change the length.(unless it shrinks then the newlength is the newsize)
length is max(size of array created, largest index set)
I seperated size and length to prevent constant resizing while walking up the array.
Change the code as you see fit.
Change DA_numberOfArrays to change how many arrays you can have at once.
Change DA_autoBufferGrowth if you find the auto grow happens too often.
Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.