提交 aa230bfb 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #1779 from reyoung/feature/add_pre_scan_to_seq

Add pre_scan routine to SequenceScanner.
......@@ -187,6 +187,13 @@ class SequenceScanner(IScanner):
self.__inner_scanner__ = inner_scanner
self.__setter__ = setter
def pre_scan(self, dat):
for each in dat:
self.__inner_scanner__.pre_scan(each)
def finish_pre_scan(self, argument):
self.__inner_scanner__.finish_pre_scan(argument)
def scan(self, dat):
self.__seq__.append(self.__seq__[-1] + self.get_size(dat))
for each in dat:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册