Browse Source

Updated examples.

woollybah 6 years ago
parent
commit
166785dfbb

+ 10 - 0
bankstream.mod/doc/createbankstream.bmx

@@ -0,0 +1,10 @@
+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

+ 10 - 0
bankstream.mod/doc/tbankstream.bmx

@@ -0,0 +1,10 @@
+SuperStrict
+
+Local bank:TBank = CreateBank(1)  'This bank will resize itself with stream
+Local stream:TBankStream = TBankStream.Create(bank)
+WriteString(stream, "Hello World")
+CloseStream(stream)
+
+For Local i:Int = 0 Until BankSize(bank)
+	Print Chr(PeekByte(bank , i) )
+Next

+ 10 - 0
bankstream.mod/doc/tbankstream_create.bmx

@@ -0,0 +1,10 @@
+SuperStrict
+
+Local bank:TBank = CreateBank(1)  'This bank will resize itself from stream
+Local stream:TBankStream = TBankStream.Create(bank)
+WriteString(stream, "Hello World")
+CloseStream(stream)
+
+For Local i:Int = 0 Until BankSize(bank)
+	Print Chr(PeekByte(bank , i) )
+Next