Write getBytes method for MTCommMessage