v1 and v2 is not equal if this code is executed on a mac:
v2 contains the correct value.
Is this the way it should behave? Was unable to find anything about it in the manual.
I know that loadbank cannot convert the data it loads, but it should at least set a flag or something so readint and friends converts the data.
local b:tbank = loadbank("littleendian::file.bin") local v1:int = peekint( b, 0 ) local s:tstream = readfile("littleendian::file.bin") local v2:int = readint( s )
v2 contains the correct value.
Is this the way it should behave? Was unable to find anything about it in the manual.
I know that loadbank cannot convert the data it loads, but it should at least set a flag or something so readint and friends converts the data.