Consider the abstract state machine and there are four states:
- Waiting for further input
- Waiting for further output
- Stream has been processed successfully.
- Stream has been processed unsuccessfully.
Those states should be reflected in the exit codes of the inflate driver function. That simplifies the logic for caller as well as it avoids most address calculations to see which state the library is currently in.
Consider the abstract state machine and there are four states:
Those states should be reflected in the exit codes of the inflate driver function. That simplifies the logic for caller as well as it avoids most address calculations to see which state the library is currently in.