change functions to objective C style by cutylewiwi
_read
read_pair
write_rsobjec
write_pair