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

Class SPURIOUSZERO

source code

                  object --+    
                           |    
prototypes.BaseProtogenClass --+
                               |
                              SPURIOUSZERO

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

The three bytes are formatted as follows:

Fun and games ensue because files in the root directory have a zero length directory name, so we have some heuristics to try and distinguish if the first byte is the spurious zero or not

Also 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

Inherited from prototypes.BaseProtogenClass: autologread, autologwrite, getvalue, iscontainer, packetsize, packetspan, update, writetobuffer

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)