Add read/write int/long functions for easy-use.