Setting the Bank's size?

Blitz3D Forums/Blitz3D Beginners Area/Setting the Bank's size?

Guy Fawkes(Posted 2012) [#1]
Hi all! :) How exactly would I go about setting the size of a bank, after having called CreateBank() ?

Thanks all! =)


Floyd(Posted 2012) [#2]
Strictly speaking, you don't. The size is specified when the bank is created.

There is a ResizeBank command, but it's really creating a new bank. So if you want a bank to grow you should usually make it substantially larger. Don't repeatedly add a few bytes at a time because there will be a lot of redundant copying.


Guy Fawkes(Posted 2012) [#3]
Ok, thanks alot! =)