DataBuffer

Monkey Forums/Monkey Programming/DataBuffer

APC(Posted 2015) [#1]

Import mojo
Import brl.databuffer
	Method OnCreate:Int()
		Local buf = DataBuffer.Load("data/test.bin")

                If Not memory Then
			Print("Missing data file!")
		End
                Local memory:String = LoadString("data/data/test.bin")
		Print "File size=" + memory.Length() + " bytes"
		
		If Not memory Then
			Print("Missing data file!")
		End
		'Print "Memory Length:" + memory.Length()
		Return 0
	End



SLotman(Posted 2015) [#2]
In the code above, memory is always null :P


APC(Posted 2015) [#3]
SLotman this is the correct post and code.
[a]http://www.monkey-x.com/Community/posts.php?topic=10190[/a]