[feature] msgbuf_serialize()