Public Member Functions | Private Attributes | Static Private Attributes
opcua.common.utils.Buffer Class Reference

List of all members.

Public Member Functions

def __init__
def __len__
def __str__
def copy
def read
def skip

Private Attributes

 _cur_pos
 _data
 _size

Static Private Attributes

 __repr__ = __str__

Detailed Description

alternative to io.BytesIO making debug easier
and added a few conveniance methods

Definition at line 32 of file utils.py.


Constructor & Destructor Documentation

def opcua.common.utils.Buffer.__init__ (   self,
  data,
  start_pos = 0,
  size = -1 
)

Definition at line 39 of file utils.py.


Member Function Documentation

Definition at line 53 of file utils.py.

Definition at line 47 of file utils.py.

def opcua.common.utils.Buffer.copy (   self,
  size = -1 
)
return a shadow copy, optionnaly only copy 'size' bytes

Definition at line 70 of file utils.py.

def opcua.common.utils.Buffer.read (   self,
  size 
)
read and pop number of bytes for buffer

Definition at line 56 of file utils.py.

def opcua.common.utils.Buffer.skip (   self,
  size 
)
skip size bytes in buffer

Definition at line 78 of file utils.py.


Member Data Documentation

Definition at line 51 of file utils.py.

Definition at line 39 of file utils.py.

Definition at line 39 of file utils.py.

Definition at line 39 of file utils.py.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Sat Jun 8 2019 18:26:24