impl object bin writer & reader