How to add Float Big Endian
Posted: Fri Mar 03, 2017 2:10 pm
So the old forum is gone. I missed out on this how to [Link]. Any one able to help a fella out? Thanks!
Community Cheat Tables of Cheat Engine
https://fearlessrevolution.com/
Code: Select all
function toBE(n,sz)
if type(sz)=='string' then sz = sz:lower()end
sz = sz or 4
local ifmt = type(sz)=='number' and 'I'..sz or sz
local ofmt = sz=='f' and "I4" or sz=='d' and "I8" or "I"..sz
local p,u = string.pack,string.unpack
return (u("<"..ofmt,p(">"..ifmt,n)))
end