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

Class DONTCARE

source code

       object --+    
                |    
BaseProtogenClass --+
                    |
                   DONTCARE

Block of bytes that we don't know and don't care for

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
A data value can be specified to this constructor or in the value keyword arg
source code
 
_update(self, args, kwargs) source code
 
readfrombuffer(self, buf)
Get our value from the buffer
source code
 
writetobuffer(self, buf)
Scribble ourselves to the buf
source code
 
packetsize(self)
Returns size in bytes that we occupy
source code
 
getvalue(self)
Returns the bytes we are
source code

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 

A data value can be specified to this constructor or in the value keyword arg

Parameters:
  • sizeinbytes - Length of block If not set, then the rest of the packet will be consumed on reads.
  • default - (Optional) Our default value, could be either a char or string.
  • storage - (Optional) True or False: whether to store the data or ignore.
Overrides: object.__init__

_update(self, args, kwargs)

source code 
Overrides: BaseProtogenClass._update

readfrombuffer(self, buf)

source code 

Get our value from the buffer

Overrides: BaseProtogenClass.readfrombuffer
(inherited documentation)

writetobuffer(self, buf)

source code 

Scribble ourselves to the buf

Overrides: BaseProtogenClass.writetobuffer
(inherited documentation)

packetsize(self)

source code 

Returns size in bytes that we occupy

Overrides: BaseProtogenClass.packetsize
(inherited documentation)

getvalue(self)

source code 

Returns the bytes we are

Overrides: BaseProtogenClass.getvalue