MCPcopy Index your code
hub / github.com/FreeOpcUa/python-opcua / write_unpack_enum

Method write_unpack_enum

schemas/generate_protocol_python.py:176–177  ·  view source on GitHub ↗
(self, name, enum)

Source from the content-addressed store, hash-verified

174 self.iix = 0
175
176 def write_unpack_enum(self, name, enum):
177 self.write(f"self.{name} = {enum.name}(uabin.Primitives.{enum.uatype}.unpack(data))")
178
179 def get_size_from_uatype(self, uatype):
180 if uatype in ("Sbyte", "Byte", "Char", "Boolean"):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected