T
ThunkGames
Guest
I am working on speeding up the loading in my sandbox game by reading and writing to and from binary files instead of text files.
I can use this code to "break down" an integer into bytes as to write them into binary files:
But I don't know how to "put together" these 4 values after I read them.
I can use this code to "break down" an integer into bytes as to write them into binary files:
Code:
var b1 = int >> 24 & 255;
var b2 = int >> 16 & 255;
var b3 = int >> 8 & 255;
var b4 = int & 255;