Optimised functions to read and write int16/32/64
