Banks are useful for storing data that is of no fixed type - for example, the contents of a binary file.
To create a bank, use the CreateBank command.
To write data to a bank, use one of the Poke commands. To read data from a bank, use one of the Peek commands.
In addition, banks can be loaded or saved using LoadBank or SaveBank.
Returns: A bank object with an initial size of size
Returns: A bank object that references an existing block of memory
The memory referenced by a static bank is not released when the bank is deleted.
A static bank cannot be resized.
Returns: A bank containing the binary contents of url, or null if url could not be opened
Returns: True if successful.
Returns: A byte pointer to the bank's internal memory buffer
Returns: The size, in bytes, of the bank's internal memory buffer
Returns: The capacity, in bytes, of the bank's internal memory buffer
Returns: The byte value at the specified byte offset within the bank
Returns: The short value at the specified byte offset within the bank
Returns: The int value at the specified byte offset within the bank
Returns: The int value at the specified byte offset within the bank
Returns: The float value at the specified byte offset within the bank
Returns: The double value at the specified byte offset within the bank
Returns: The number of bytes successfully read from the Stream
Returns: The number of bytes successfully written from the Stream
Module | brl.bank |
Version | 1.00 |
Author | Mark Sibly |
License | Blitz Shared Source Code |
Copyright | Blitz Research Ltd |
Modserver | BRL |