Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeOpcUa/python-opcua
/ pack
Method
pack
opcua/ua/ua_binary.py:50–54 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
48
class
_Bytes(object):
49
@staticmethod
50
def
pack(data):
51
if
data is None:
52
return
Primitives.Int32.pack(-1)
53
length = len(data)
54
return
Primitives.Int32.pack(length) + data
55
56
@staticmethod
57
def
unpack(data):
Callers
nothing calls this directly
Calls
1
pack
Method · 0.45
Tested by
no test coverage detected