More meaningful ToString Method for brl.bank

BlitzMax Forums/BlitzMax Module Tweaks/More meaningful ToString Method for brl.bank

FlameDuck(Posted 2005) [#1]
Rem
bbdoc: Copy the banks content to a String object
End Rem
Method ToString:String()
	Local rStr:String = ""
	For Local i:Int = 0 Until _size
		rStr:+ Chr(_buf[i])
	Next
	Return rStr
EndMethod



Beaker(Posted 2005) [#2]
I'm not denying that you may want to do this sometimes, but is this really more meaningful?