microsoft / microsoft/inflatelib

Simplify the driver interface

Open
#22 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
11
Forks
4
Avg merge
4h 17m
Merged PRs (30d)
1

Description

Consider the abstract state machine and there are four states:

  1. Waiting for further input
  2. Waiting for further output
  3. Stream has been processed successfully.
  4. 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the inflate driver function and its callers, then map the four states described in the issue to the current interface behavior. Define completion as callers being able to distinguish waiting for input, waiting for output, successful completion, and unsuccessful completion through exit codes, with the surrounding state and address-calculation logic simplified accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.