Commit c75743ef authored by Klaus Wölfel's avatar Klaus Wölfel

data stream: add method to iterate over stream data

parent 01d7ea38
......@@ -49,6 +49,14 @@ class DataStream(BigFile):
, PropertySheet.SortIndex
)
def iterate(self, start_offset, end_offset):
"""
Read chunks of data from a Data Stream and yield them.
"""
data = self._baseGetData()
for chunk in data.iterate(start_offset, end_offset - start_offset):
yield chunk
def readChunkList(self, start_offset, end_offset):
"""
Read chunks of data from a Data Stream and return them.
......
......@@ -45,7 +45,9 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple/>
<tuple>
<string>W: 71, 2: Arguments number differs from overridden \'appendData\' method (arguments-differ)</string>
</tuple>
</value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment