BRL.BankStream
A bank stream allows you to read data into or out of a bank. A bank stream can be used with any of the stream commands, or anywhere a TStream object is expected.
To create a bank stream, use the CreateBankStream command.
As with all streams, you should use CloseStream when you are finished with the bank stream.
Types
Type | Description |
---|---|
TBankStream | BankStream Object |
Functions
Function CreateBankStream:TBankStream( bank:TBank )
Create a bank stream
A bank stream allows you to read data into or out of a bank. A bank stream extends a stream so can be used in place of a stream.
Returns
A bank stream object
Example
SuperStrict
Local bank:TBank = CreateBank(1) 'This bank will resize itself with stream
Local stream:TBankStream = CreateBankStream(bank)
WriteString(stream, "Hello World")
CloseStream(stream)
For Local i:Int = 0 Until BankSize(bank)
Print Chr(PeekByte(bank , i) )
Next