Searched refs:packed_field (Results 1 – 6 of 6) sorted by relevance
20 {%- 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 …]
150 def JavaScriptFieldOffset(packed_field): argument151 return "offset + codec.kStructHeaderSize + %s" % packed_field.offset154 def JavaScriptNullableParam(packed_field): argument155 return "true" if mojom.IsNullableKind(packed_field.field.kind) else "false"158 def JavaScriptValidateArrayParams(packed_field): argument159 nullable = JavaScriptNullableParam(packed_field)160 field_offset = JavaScriptFieldOffset(packed_field)161 element_kind = packed_field.field.kind.kind163 element_count = generator.ExpectedArraySize(packed_field.field.kind)170 def JavaScriptValidateStructParams(packed_field): argument[all …]
159 def GetFieldDescriptor(packed_field): argument160 field = packed_field.field166 arguments.append(str(packed_field.field.ordinal))
95 {% 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…
14 {%- 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) %}
143 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