Home
last modified time | relevance | path

Searched refs:packed_field (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/mojo/public/tools/bindings/generators/js_templates/
Dstruct_definition.tmpl20 {%- for packed_field in struct.packed.packed_fields %}
21 this.{{packed_field.field.name}} = {{packed_field.field|default_value}};
44 {%- for packed_field in struct.packed.packed_fields %}
45 {%- set field_name = packed_field.field.name %}
46 {%- if packed_field.field|is_string_pointer_field %}
48 err = messageValidator.validateStringPointer({{packed_field|validate_string_params}})
50 {%- elif packed_field.field|is_array_pointer_field %}
52 err = messageValidator.validateArrayPointer({{packed_field|validate_array_params}});
54 {%- elif packed_field.field|is_struct_pointer_field %}
56 err = messageValidator.validateStructPointer({{packed_field|validate_struct_params}});
[all …]
/external/chromium_org/mojo/public/tools/bindings/generators/
Dmojom_js_generator.py150 def JavaScriptFieldOffset(packed_field): argument
151 return "offset + codec.kStructHeaderSize + %s" % packed_field.offset
154 def JavaScriptNullableParam(packed_field): argument
155 return "true" if mojom.IsNullableKind(packed_field.field.kind) else "false"
158 def JavaScriptValidateArrayParams(packed_field): argument
159 nullable = JavaScriptNullableParam(packed_field)
160 field_offset = JavaScriptFieldOffset(packed_field)
161 element_kind = packed_field.field.kind.kind
163 element_count = generator.ExpectedArraySize(packed_field.field.kind)
170 def JavaScriptValidateStructParams(packed_field): argument
[all …]
Dmojom_python_generator.py159 def GetFieldDescriptor(packed_field): argument
160 field = packed_field.field
166 arguments.append(str(packed_field.field.ordinal))
/external/chromium_org/mojo/public/tools/bindings/generators/java_templates/
Dstruct_definition.tmpl95 {% for packed_field in byte.packed_fields %}
96 if (mainDataHeader.numFields > {{packed_field.ordinal}}) {
97 …{{decode('result.' ~ packed_field.field|name, packed_field.field.kind, 8+packed_field.offset, pack…
112 {% for packed_field in byte.packed_fields %}
113 …{{encode(packed_field.field|name, packed_field.field.kind, 8+packed_field.offset, packed_field.bit…
/external/chromium_org/mojo/public/tools/bindings/generators/cpp_templates/
Dstruct_macros.tmpl14 {%- for packed_field in struct.packed.packed_fields %}
15 {%- set name = packed_field.field.name %}
16 {%- set kind = packed_field.field.kind %}
75 {%- for packed_field in struct.packed.packed_fields %}
76 {{field_line(packed_field.field)}}
79 {%- set pad = next_pf.offset - (packed_field.offset + packed_field.size) %}
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom/generate/
Dpack.py143 for packed_field in packed_struct.packed_fields:
144 for i in xrange(limit_of_previous_field, packed_field.offset):
146 bytes[packed_field.offset].packed_fields.append(packed_field)
147 limit_of_previous_field = packed_field.offset + packed_field.size