Class BinaryMultiStateStep<STATES, ARGS_UNION>

a pure binary step is a class capable of encoding and decoding binary data without the lose of invertibility information during either transformations.

  • the forward method behaves like a decoder
  • the backward method behaves like an encoder

Type Parameters

  • STATES extends {
        [state: PropertyKey]: BinaryPureStep<any>;
    }

    the value type of the decoded object

  • ARGS_UNION = STATES[keyof STATES] extends BinaryPureStep<any, infer ARGS>
        ? ARGS
        : any

    the input argument interface needed for decoding in the forward method (could be empty)

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

state: keyof STATES
states: STATES
lost: never

information lost in the forward transformation should be stored here. the lost information may be needed for the backward transformation.

Methods

Generated using TypeDoc