Undocumented TStream.read(buffer, size)
BlitzMax Forums/BlitzMax Programming/Undocumented TStream.read(buffer, size)
| ||
| Did this one just get missed? It's nice to have :)
Local a:Int[10]
Local i:Int
Local file:TStream = OpenStream("d:\t.jpg")' any file
Print "ReadInt() 10 times"
For i = 0 Until 10
Print Readint(file)
Next
Print
SeekStream(file,0)' back to beginning of file
file.read(Varptr(a[0]), 10*4) 'read 10 Ints into array a[]
Print "Array a[0] to a[9] after file.read(Varptr(a[0]), 10*4)"
For i = EachIn a
Print i
NextTom |
| ||
| Nice. |
| ||
| Tom, it's a method. None of the methods in BlitzMax are documented. So it wasn't missed, they just didn't document -any- of the members of classes, which is depressing. |
| ||
| I just noticed there's a ReadBytes() that does the same thing too, that is in stream.bmx and has a bbdoc entry, but isn't in the help files and doesn't get highlighted in the IDE b.t.w, how does the syntax highlighting work exactly, since 1.03 IDE update ReadFloat and Self don't get highlighted. I'd like to get the OpenGL command set highlited in the IDE too. |