Package phones :: Module com_brew :: Class EXTRAZERO
[hide private]
[frames] | no frames]

Class EXTRAZERO

source code

                  object --+    
                           |    
prototypes.BaseProtogenClass --+
                               |
                              EXTRAZERO

This is a special class used to consume the spurious zero in some p_brew.listfileresponse or p_brew.listdirectoryresponse

The two bytes are formatted as follows:

Allow for zero length filenames.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
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 string we are
source code

Inherited from prototypes.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 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_update(self, args, kwargs)

source code 
Overrides: prototypes.BaseProtogenClass._update

readfrombuffer(self, buf)

source code 

Get our value from the buffer

Overrides: prototypes.BaseProtogenClass.readfrombuffer
(inherited documentation)

writetobuffer(self, buf)

source code 

Scribble ourselves to the buf

Overrides: prototypes.BaseProtogenClass.writetobuffer
(inherited documentation)

packetsize(self)

source code 

Returns size in bytes that we occupy

Overrides: prototypes.BaseProtogenClass.packetsize
(inherited documentation)

getvalue(self)

source code 

Returns the string we are

Overrides: prototypes.BaseProtogenClass.getvalue