Commit 14f55ac8 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Klaus Wölfel

data stream: add method to iterate over stream data

parent fb4c6f95
...@@ -49,6 +49,14 @@ class DataStream(BigFile): ...@@ -49,6 +49,14 @@ class DataStream(BigFile):
, PropertySheet.SortIndex , 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): def readChunkList(self, start_offset, end_offset):
""" """
Read chunks of data from a Data Stream and return them. Read chunks of data from a Data Stream and return them.
......
...@@ -45,7 +45,9 @@ ...@@ -45,7 +45,9 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple/> <tuple>
<string>W: 71, 2: Arguments number differs from overridden \'appendData\' method (arguments-differ)</string>
</tuple>
</value> </value>
</item> </item>
<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