dump

fun <M : CustomMessage> dump(factory: CustomMessage.Factory<M>, message: M): ByteArray