Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1909)

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl

Issue 1387993002: mojo::Serialize*_() calls now propogate/return validation errors. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Cleaned up how serialization errors propagate, and addressed other comments from viettrungluu@ Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 size_t GetSerializedSize_(const {{union.name}}Ptr& input, bool inlined); 1 size_t GetSerializedSize_(const {{union.name}}Ptr& input, bool inlined);
2 void SerializeUnion_({{union.name}}* input, mojo::internal::Buffer* buffer, 2 mojo::internal::ValidationError SerializeUnion_(
3 internal::{{union.name}}_Data** output, bool inlined); 3 {{union.name}}* input,
4 mojo::internal::Buffer* buffer,
5 internal::{{union.name}}_Data** output, bool inlined);
4 void Deserialize_(internal::{{union.name}}_Data* input, 6 void Deserialize_(internal::{{union.name}}_Data* input,
5 {{union.name}}* output); 7 {{union.name}}* output);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698