"What I'm trying to achieve is to ensure that an int is in little-endiannes" Ignore that last part, whoops.