--
You received this message because you are subscribed to the Google Groups "mojo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojo-dev+u...@chromium.org.
Hi Florian,For Dart we generate an `encode` method on every struct type. E.g.:We use it through the method serializeWithHeader that they inherit from the Struct class in our unit tests here:Those are the same bytes that we would send over the wire, and if you e.g. wrote them out to disk and read them back in it would be no different.It seems to me that that is what you're looking for, but maybe it would help if you could explain a bit more if not.
Cheers,ZachOn Fri, Mar 18, 2016 at 7:10 AM, 'Florian Loitsch' via mojo-dev <mojo...@chromium.org> wrote:--Should we use Mojom for serialization?Mojom messages are serialized into a byte-format when they are sent from one endpoint to another. Would it make sense to use this functionality to serialize (for example write to disk) our data structures?If yes, how would you do it?Currently the generated output of the Mojom compiler doesn't provide any exposed "serialize" functions, so we would either need to change the output (which doesn't look too hard), or "intercept" the mojom messages. Deserialization would then consist of reading the bits and send them back to a Mojom service.Wdyt?
You received this message because you are subscribed to the Google Groups "mojo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojo-dev+u...@chromium.org.