Ban(g)ks!

Blitz3D Forums/Blitz3D Programming/Ban(g)ks!

Moraldi(Posted 2008) [#1]
I am reading in the Blitz3D manual about ResizeBank command:

Resizes a previously created memory bank. Existing bank data is unmodified, but may be moved in memory. Also see CreateBank, CopyBank, and BankSize

What does exactly mean? Is there any chance that existing data will be moved within bank automatically without programmer's code?


big10p(Posted 2008) [#2]
Your data inside the bank will be exactly as it was before the resize (unless you make the bank smaller, in which case data will be 'cut off').

'may be moved in memory' just means the location of the bank may have to be moved elsewhere in RAM i.e. if you make the bank bigger but there isn't sufficient room to resize the bank at it's current memory position, without it encroaching of memory being used by something else.

Basically, you shouldn't have to worry about this, though.


Moraldi(Posted 2008) [#3]
Thanks a lot big10p. This makes my life easier...


D4NM4N(Posted 2008) [#4]
lol i thought this was going to be a witty wall street thread :D


Moraldi(Posted 2008) [#5]
Hi, D4NM4N
Yeah, you are right!. I tried to attract your attention! (although it is not a proper thread title for searching...)