New issue
Advanced search Search tips

Issue 902363 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Make it easier to send protos over Mojo

Project Member Reported by dcheng@chromium.org, Nov 6

Issue description

Rather than requiring developers to write:
- a parallel Mojo struct
- Manually serialize/deserialize from string (which is slightly dubious, since Mojo strings are supposed to be valid UTF-8, so this would actually require then converting from string to array<uint8>...)
- Similar to the above but wrapping the string field in a dedicated struct for typemapping purposes

It would be convenient if we could say something like:
[EncodedAs=proto]
struct Foo;

 

Sign in to add a comment