Home
last modified time | relevance | path

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

/nanopb-3.4.0/generator/
Dnanopb_generator.py540 def __init__(self, struct_name, desc, field_options, element_path = (), comments = None): argument
555 self.callback_datatype = field_options.callback_datatype
557 self.sort_by_tag = field_options.sort_by_tag
559 if field_options.type == nanopb_pb2.FT_INLINE:
563 field_options.type = nanopb_pb2.FT_STATIC
564 field_options.fixed_length = True
567 if field_options.HasField("max_size"):
568 self.max_size = field_options.max_size
570 self.default_has = field_options.default_has
572 if desc.type == FieldD.TYPE_STRING and field_options.HasField("max_length"):
[all …]