You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// coordinates data (walk)
// 100c 70e3 76ba 73c3
// 100c 92e3 af8a 1266
// 100c b1e3 d34b c2b8
// 100c d0e3 6168 aec3
// set to LE
buf.order(true)
var w = buf.readUint32(0)
var x = buf.readUint32()
var y = buf.readUint32()
var z = buf.readUint32()
The docs says:
Offset to read from. Will use and increase ByteBuffer#offset by 4 if omitted.
So why am I getting the error:
RangeError: Illegal offset: 0 <= 8 (+4) <= 11
Oh should be readUint16() but how to make it read LE?
The text was updated successfully, but these errors were encountered:
Yea, I realized. Got it solved. Except I don't get why I should properly FLIP it? What is the implications of flip? I didn't use flip but I'm getting proper results.
I want to read bytes in LE order
The docs says:
So why am I getting the error:
Oh should be
readUint16()
but how to make it read LE?The text was updated successfully, but these errors were encountered: