Package conary :: Module streams :: Class AbsoluteSha1Stream
[hide private]
[frames] | no frames]

Class AbsoluteSha1Stream

source code

                object --+        
                         |        
lib.cstreams'.StringStream --+    
                             |    
                    Sha1Stream --+
                                 |
                                AbsoluteSha1Stream

This is like a Sha1Stream, except that it allows for 0 length diffs to represent having a sha1 set to having no sha1 set. Normally a Sha1Stream requires its data to be 20 bytes long. We allow 20 or 0.

Instance Methods [hide private]
 
diff(self, them)
Find the difference between two streams.
source code

Inherited from Sha1Stream: compute, freeze, set, setFromString, twm, verify

Inherited from lib.cstreams'.StringStream: __call__, __cmp__, __eq__, __hash__, __init__, __new__, thaw

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

Class Variables [hide private]
  allowedSize = (0, 20)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

diff(self, them)

source code 
Find the difference between two streams.
Overrides: lib.cstreams'.StringStream.diff
(inherited documentation)