OLD | NEW |
| (Empty) |
1 {%- set full_class = "%s::internal::%s_Data"|format(namespace, struct.name) %} | |
2 {%- set name = struct.name|camel_to_underscores -%} | |
3 | |
4 template <> | |
5 class ObjectTraits<{{full_class}}> { | |
6 public: | |
7 static size_t ComputeSizeOf(const {{full_class}}* {{name}}); | |
8 static {{full_class}}* Clone(const {{full_class}}* {{name}}, Buffer* buf); | |
9 static void CloseHandles({{full_class}}* {{name}}); | |
10 static void EncodePointersAndHandles({{full_class}}* {{name}}, | |
11 std::vector<mojo::Handle>* handles); | |
12 static bool DecodePointersAndHandles({{full_class}}* {{name}}, | |
13 mojo::Message* message); | |
14 }; | |
OLD | NEW |