MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / pack

Method pack

opcua/ua/ua_binary.py:134–135  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

132 self.format = st.format
133
134 def pack(self, data):
135 return struct.pack(self.format, data)
136
137 def unpack(self, data):
138 return struct.unpack(self.format, data.read(self.size))[0]

Callers

nothing calls this directly

Calls 1

packMethod · 0.45

Tested by

no test coverage detected