Generator for loading signatures

Also dont waste memory when no output is expected
This commit is contained in:
Kovid Goyal
2021-09-18 13:34:20 +05:30
parent 77508bfe0d
commit bcd1837924
3 changed files with 33 additions and 8 deletions

View File

@@ -27,5 +27,5 @@ def make_hash_table(sig: SignatureCapsule) -> None:
pass
def iter_job(job_capsule: JobCapsule, input_data: bytes, eof: Optional[bool] = None) -> Tuple[bytes, bool, int]:
def iter_job(job_capsule: JobCapsule, input_data: bytes, eof: Optional[bool] = None, expecting_output: bool = True) -> Tuple[bytes, bool, int]:
pass