| TBank: | Methods | Functions |
| Buf | Get a bank's memory pointer |
| Lock | Lock a bank's memory block |
| Unlock | Unlock a bank's memory pointer |
| Size | Get a bank's size |
| Capacity | Get capacity of bank |
| Resize | Resize a bank |
| Read | Read bytes from a stream into a bank |
| Write | Write bytes in a bank to a stream |
| PeekByte | Peek a byte from a bank |
| PokeByte | Poke a byte into a bank |
| PeekShort | Peek a short from a bank |
| PokeShort | Poke a short into a bank |
| PeekInt | Peek an int from a bank |
| PokeInt | Poke an int into a bank |
| PeekLong | Peek a long from a bank |
| PokeLong | Poke a long value into a bank |
| PeekFloat | Peek a float from a bank |
| PokeFloat | Poke a float value into a bank |
| PeekDouble | Peek a double from a bank |
| PokeDouble | Poke a double value into a bank |
| Save | Save a bank to a stream |
| Load | Load a bank from a stream |
| Create | Create a bank |
| CreateStatic | Create a bank from an existing block of memory |
| Method Buf:Byte Ptr() | |
| Returns | A byte pointer to the memory block controlled by the bank |
| Description | Get a bank's memory pointer |
| Information | Please use Lock and Unlock instead of this method. |
| Method Lock:Byte Ptr() | |
| Returns | A byte pointer to the memory block controlled by the bank |
| Description | Lock a bank's memory block |
| Information |
While locked, a bank cannot be resized.
After you have finished with a bank's memory block, you must use Unlock to return it to the bank. |
| Method Unlock() | |
| Description | Unlock a bank's memory pointer |
| Information | After you have finished with a bank's memory block, you must use Unlock to return it to the bank. |
| Method Size() | |
| Returns | The size, in bytes, of the memory block controlled by the bank |
| Description | Get a bank's size |
| Method Capacity() | |
| Returns | The capacity, in bytes, of the bank's internal memory buffer |
| Description | Get capacity of bank |
| Method Resize( size ) | |
| Description | Resize a bank |
| Method Read( stream:TStream,offset,count ) | |
| Description | Read bytes from a stream into a bank |
| Method Write( stream:TStream,offset,count ) | |
| Description | Write bytes in a bank to a stream |
| Method PeekByte( offset ) | |
| Returns | The byte value at the specified byte offset within the bank |
| Description | Peek a byte from a bank |
| Method PokeByte( offset,value ) | |
| Description | Poke a byte into a bank |
| Method PeekShort( offset ) | |
| Returns | The short value at the specified byte offset within the bank |
| Description | Peek a short from a bank |
| Method PokeShort( offset,value ) | |
| Description | Poke a short into a bank |
| Method PeekInt( offset ) | |
| Returns | The int value at the specified byte offset within the bank |
| Description | Peek an int from a bank |
| Method PokeInt( offset,value ) | |
| Description | Poke an int into a bank |
| Method PeekLong:Long( offset ) | |
| Returns | The long value at the specified byte offset within the bank |
| Description | Peek a long from a bank |
| Method PokeLong( offset,value:Long ) | |
| Description | Poke a long value into a bank |
| Method PeekFloat#( offset ) | |
| Returns | The float value at the specified byte offset within the bank |
| Description | Peek a float from a bank |
| Method PokeFloat( offset,value# ) | |
| Description | Poke a float value into a bank |
| Method PeekDouble!( offset ) | |
| Returns | The double value at the specified byte offset within the bank |
| Description | Peek a double from a bank |
| Method PokeDouble( offset,value! ) | |
| Description | Poke a double value into a bank |
| Method Save( url:Object ) | |
| Description | Save a bank to a stream |
| Information | Return True if successful, otherwise False. |
| Function Load:TBank( url:Object ) | |
| Returns | A new TBank object |
| Description | Load a bank from a stream |
| Information | Returns a new TBank object if successfull, otherwise Null. |
| Function Create:TBank( size ) | |
| Returns | A new TBank object with an initial size of size |
| Description | Create a bank |
| Function CreateStatic:TBank( buf:Byte Ptr,size ) | |
| Description | Create a bank from an existing block of memory |