MCPcopy Create free account
hub / github.com/apache/fory / is_string_field

Method is_string_field

compiler/fory_compiler/generators/cpp.py:724–727  ·  view source on GitHub ↗
(self, field: Field)

Source from the content-addressed store, hash-verified

722 return field.field_type.kind in self.NUMERIC_PRIMITIVES
723
724 def is_string_field(self, field: Field) -> bool:
725 return isinstance(field.field_type, PrimitiveType) and (
726 field.field_type.kind == PrimitiveKind.STRING
727 )
728
729 def is_bytes_field(self, field: Field) -> bool:
730 return isinstance(field.field_type, PrimitiveType) and (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected