Show More
@@ -828,6 +828,7 b' class unbundlepart(unpackermixin):' | |||||
828 | self._readheader() |
|
828 | self._readheader() | |
829 | self._mandatory = None |
|
829 | self._mandatory = None | |
830 | self._chunkindex = [] #(payload, file) position tuples for chunk starts |
|
830 | self._chunkindex = [] #(payload, file) position tuples for chunk starts | |
|
831 | self._pos = 0 | |||
831 |
|
832 | |||
832 | def _fromheader(self, size): |
|
833 | def _fromheader(self, size): | |
833 | """return the next <size> byte from the header""" |
|
834 | """return the next <size> byte from the header""" | |
@@ -930,8 +931,12 b' class unbundlepart(unpackermixin):' | |||||
930 | data = self._payloadstream.read(size) |
|
931 | data = self._payloadstream.read(size) | |
931 | if size is None or len(data) < size: |
|
932 | if size is None or len(data) < size: | |
932 | self.consumed = True |
|
933 | self.consumed = True | |
|
934 | self._pos += len(data) | |||
933 | return data |
|
935 | return data | |
934 |
|
936 | |||
|
937 | def tell(self): | |||
|
938 | return self._pos | |||
|
939 | ||||
935 | capabilities = {'HG2Y': (), |
|
940 | capabilities = {'HG2Y': (), | |
936 | 'b2x:listkeys': (), |
|
941 | 'b2x:listkeys': (), | |
937 | 'b2x:pushkey': (), |
|
942 | 'b2x:pushkey': (), |
General Comments 0
You need to be logged in to leave comments.
Login now