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

Method skip

opcua/common/utils.py:82–89  ·  view source on GitHub ↗

skip size bytes in buffer

(self, size)

Source from the content-addressed store, hash-verified

80 return Buffer(self._data, self._cur_pos, size)
81
82 def skip(self, size):
83 """
84 skip size bytes in buffer
85 """
86 if size > self._size:
87 raise NotEnoughData("Not enough data left in buffer, request for {0}, we have {1}".format(size, self))
88 self._size -= size
89 self._cur_pos += size
90
91
92class SocketWrapper(object):

Callers 3

from_header_and_bodyMethod · 0.80

Calls 1

NotEnoughDataClass · 0.85

Tested by

no test coverage detected