binary io in little endian