Read/Write Big Endian
-
- Expert Cheater
- Posts: 66
- Joined: Sat Sep 21, 2019 4:21 pm
- Reputation: 45
Read/Write Big Endian
Does anyone have a script out there that allows lua to read and write big endian float values? I was specifically looking to read and write big endian float values.I looked on the other forum and google and I came up empty handed. Any help would be much appreciated and thanks in advance.
Re: Read/Write Big Endian
Easiest is use a custom type of big endian floats in a cheat table or getCustomType() and then use bytetables to feed it a result and read it out
alternatively, use readBytes to read 4 bytes, swap the bytes, and then use byteTableToFloat
alternatively, use readBytes to read 4 bytes, swap the bytes, and then use byteTableToFloat
Who is online
Users browsing this forum: No registered users