Like Brucey said they're a bank of memory to use for whatever you like. It's a bit of a more convenient way of using memory without having to do things like `memalloc()`, to keep track of allocated blocks, to deallocate properly, etc.. using a bank it's handled by the garbage collector more easily and you get supporting functions like PeekByte, PokeInt etc.
If you know what you're doing you can of course do the same simpler and faster yourself using arrays/memalloc and pointers. Even if I use a bank I usually get the pointer and then use pointers for access.
You might use a bank to load a binary file, some data from disk, you might use it as input/output to the Compress() and Compress2() commands, you might use it to store some kind of special format of data in one place rather than in a custom type with fields, etc.
|