Class BinaryStep<OUT, ARGS, LOST>Abstract

a binary step is a class capable of encoding and decoding binary data.

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

if a certain kind of BinaryStep does not lose data when decoding, it is considered to be pure. if that is the case, you should instead use the BinaryPureStep, which offers much more benefits.

Type Parameters

  • OUT

    the value type of the decoded object

  • ARGS = any

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

  • LOST = any

    the interface of any potential lost data. if it exists, it should be used inside of the backward method when reconstructing the binary data

Hierarchy (view full)

Implemented by

Constructors

Properties

Methods

Constructors

Properties

lost: LOST

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

Methods

Generated using TypeDoc