Home
last modified time | relevance | path

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

/nanopb-2.7.6/generator/
Dnanopb_generator.py468 def __init__(self, struct_name, desc, field_options): argument
482 self.callback_datatype = field_options.callback_datatype
484 self.sort_by_tag = field_options.sort_by_tag
486 if field_options.type == nanopb_pb2.FT_INLINE:
490 field_options.type = nanopb_pb2.FT_STATIC
491 field_options.fixed_length = True
494 if field_options.HasField("max_size"):
495 self.max_size = field_options.max_size
497 self.default_has = field_options.default_has
499 if desc.type == FieldD.TYPE_STRING and field_options.HasField("max_length"):
[all …]