Module prototypes :: Class UNKNOWN
[hide private]
[frames] | no frames]

Class UNKNOWN

source code

       object --+        
                |        
BaseProtogenClass --+    
                    |    
                 DATA --+
                        |
                       UNKNOWN

A block of bytes whose purpose we don't know

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Same arguments as DATA.__init__.
source code
 
_update(self, args, kwargs) source code

Inherited from DATA: getvalue, packetsize, readfrombuffer, writetobuffer

Inherited from BaseProtogenClass: autologread, autologwrite, iscontainer, packetspan, update

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Same arguments as DATA.__init__. We default to a block of pad chars (usually )

Parameters:
  • constant - (Optional) A constant value. All reads must have this value
  • pad - (Default=0) The padding byte if fixed length when writing and the value isn't long enough
  • sizeinbytes - (Optional) Set if fixed length. If not set, then the rest of the packet will be consumed on reads.
  • default - (Optional) Our default value
  • raiseonwrongsize - (Default True) raise ValueLengthException if the supplied value is too large to fit within sizeinbytes.
Overrides: object.__init__

_update(self, args, kwargs)

source code 
Overrides: BaseProtogenClass._update