Lines Matching refs:field
26 environment: Environment, field: _XdrDeclaration
29 if isinstance(field, _XdrBasic):
30 template = get_jinja2_template(environment, "definition", field.template)
33 name=field.name,
34 type=kernel_c_type(field.spec),
35 classifier=field.spec.c_classifier,
38 elif isinstance(field, _XdrFixedLengthOpaque):
39 template = get_jinja2_template(environment, "definition", field.template)
42 name=field.name,
43 size=field.size,
46 elif isinstance(field, _XdrVariableLengthOpaque):
47 template = get_jinja2_template(environment, "definition", field.template)
48 print(template.render(name=field.name))
49 elif isinstance(field, _XdrVariableLengthString):
50 template = get_jinja2_template(environment, "definition", field.template)
51 print(template.render(name=field.name))
52 elif isinstance(field, _XdrFixedLengthArray):
53 template = get_jinja2_template(environment, "definition", field.template)
56 name=field.name,
57 type=kernel_c_type(field.spec),
58 size=field.size,
61 elif isinstance(field, _XdrVariableLengthArray):
62 template = get_jinja2_template(environment, "definition", field.template)
65 name=field.name,
66 type=kernel_c_type(field.spec),
67 classifier=field.spec.c_classifier,
70 elif isinstance(field, _XdrOptionalData):
71 template = get_jinja2_template(environment, "definition", field.template)
74 name=field.name,
75 type=kernel_c_type(field.spec),
76 classifier=field.spec.c_classifier,
86 for field in node.fields[0:-1]:
87 emit_pointer_member_definition(environment, field)
94 environment: Environment, field: _XdrDeclaration
97 if isinstance(field, _XdrBasic):
98 template = get_jinja2_template(environment, "decoder", field.template)
101 name=field.name,
102 type=field.spec.type_name,
103 classifier=field.spec.c_classifier,
106 elif isinstance(field, _XdrFixedLengthOpaque):
107 template = get_jinja2_template(environment, "decoder", field.template)
110 name=field.name,
111 size=field.size,
114 elif isinstance(field, _XdrVariableLengthOpaque):
115 template = get_jinja2_template(environment, "decoder", field.template)
118 name=field.name,
119 maxsize=field.maxsize,
122 elif isinstance(field, _XdrVariableLengthString):
123 template = get_jinja2_template(environment, "decoder", field.template)
126 name=field.name,
127 maxsize=field.maxsize,
130 elif isinstance(field, _XdrFixedLengthArray):
131 template = get_jinja2_template(environment, "decoder", field.template)
134 name=field.name,
135 type=field.spec.type_name,
136 size=field.size,
137 classifier=field.spec.c_classifier,
140 elif isinstance(field, _XdrVariableLengthArray):
141 template = get_jinja2_template(environment, "decoder", field.template)
144 name=field.name,
145 type=field.spec.type_name,
146 maxsize=field.maxsize,
147 classifier=field.spec.c_classifier,
150 elif isinstance(field, _XdrOptionalData):
151 template = get_jinja2_template(environment, "decoder", field.template)
154 name=field.name,
155 type=field.spec.type_name,
156 classifier=field.spec.c_classifier,
166 for field in node.fields[0:-1]:
167 emit_pointer_member_decoder(environment, field)
174 environment: Environment, field: _XdrDeclaration
177 if isinstance(field, _XdrBasic):
178 template = get_jinja2_template(environment, "encoder", field.template)
181 name=field.name,
182 type=field.spec.type_name,
185 elif isinstance(field, _XdrFixedLengthOpaque):
186 template = get_jinja2_template(environment, "encoder", field.template)
189 name=field.name,
190 size=field.size,
193 elif isinstance(field, _XdrVariableLengthOpaque):
194 template = get_jinja2_template(environment, "encoder", field.template)
197 name=field.name,
198 maxsize=field.maxsize,
201 elif isinstance(field, _XdrVariableLengthString):
202 template = get_jinja2_template(environment, "encoder", field.template)
205 name=field.name,
206 maxsize=field.maxsize,
209 elif isinstance(field, _XdrFixedLengthArray):
210 template = get_jinja2_template(environment, "encoder", field.template)
213 name=field.name,
214 type=field.spec.type_name,
215 size=field.size,
218 elif isinstance(field, _XdrVariableLengthArray):
219 template = get_jinja2_template(environment, "encoder", field.template)
222 name=field.name,
223 type=field.spec.type_name,
224 maxsize=field.maxsize,
227 elif isinstance(field, _XdrOptionalData):
228 template = get_jinja2_template(environment, "encoder", field.template)
231 name=field.name,
232 type=field.spec.type_name,
233 classifier=field.spec.c_classifier,
243 for field in node.fields[0:-1]:
244 emit_pointer_member_encoder(environment, field)