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

Method copy

opcua/common/utils.py:74–80  ·  view source on GitHub ↗

return a shadow copy, optionnaly only copy 'size' bytes

(self, size=-1)

Source from the content-addressed store, hash-verified

72 return data
73
74 def copy(self, size=-1):
75 """
76 return a shadow copy, optionnaly only copy 'size' bytes
77 """
78 if size == -1 or size > self._size:
79 size = self._size
80 return Buffer(self._data, self._cur_pos, size)
81
82 def skip(self, size):
83 """

Callers 7

_process_dataMethod · 0.95
check_answerMethod · 0.80
from_header_and_bodyMethod · 0.80
server-example.pyFile · 0.80

Calls 1

BufferClass · 0.85

Tested by

no test coverage detected