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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_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: 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 {{struct.name}}& input); 1 size_t GetSerializedSize_(const {{struct.name}}& input);
2 void Serialize_({{struct.name}}* input, mojo::internal::Buffer* buffer, 2 mojo::internal::ValidationError Serialize_(
3 internal::{{struct.name}}_Data** output); 3 {{struct.name}}* input,
4 mojo::internal::Buffer* buffer,
5 internal::{{struct.name}}_Data** output);
4 void Deserialize_(internal::{{struct.name}}_Data* input, 6 void Deserialize_(internal::{{struct.name}}_Data* input,
5 {{struct.name}}* output); 7 {{struct.name}}* output);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698