projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- add sources.
[platform/framework/web/crosswalk.git]
/
src
/
mojo
/
public
/
bindings
/
generators
/
cpp_templates
/
struct_implementation
1
// static
2
$CLASS* $CLASS::New(mojo::Buffer* buf) {
3
return new (buf->Allocate(sizeof($CLASS))) $CLASS();
4
}
5
6
$CLASS::$CLASS() {
7
_header_.num_bytes = sizeof(*this);
8
_header_.num_fields = $NUM_FIELDS;
9
}