implement MessagePackWriter