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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..ba8b05a7734fe8a8752bf5f04b0635b31f886253
--- /dev/null
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
@@ -0,0 +1,10 @@
+size_t GetSerializedSize_(const {{struct.name}}Ptr& input) {
+ return 0;
+}
+
+void Serialize_(const {{struct.name}}Ptr& input, mojo::Buffer* buffer, internal::{{struct.name}}_Data** output) {
+ *output = NULL;
+}
+
+void Deserialize_(const internal::{{struct.name}}_Data* input, {{struct.name}}Ptr* output) {
+}

Powered by Google App Engine
This is Rietveld 408576698