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

Side by Side Diff: mojo/public/bindings/generators/cpp_templates/struct_serialization_definition

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // static
2 size_t ObjectTraits<$CLASS>::ComputeSizeOf(
3 const $CLASS* $NAME) {
4 $SIZES
5 }
6
7 // static
8 $CLASS* ObjectTraits<$CLASS>::Clone(
9 const $CLASS* $NAME, Buffer* buf) {
10 $CLASS* clone = $CLASS::New(buf);
11 memcpy(clone, $NAME, sizeof(*$NAME));
12 $CLONES
13 return clone;
14 }
15
16 $SERIALIZATION
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698