6.56. kink/io/BIN_INPUT

Provides `input` implementation which extracts bytes from `bin`.

6.56.1. BIN_INPUT.new(Bin)

`new` returns an `input` which extracts bytes from `Bin`.

If the `input` is closed, read operation causes an IO error, like other implementations based on system resources.

Precondition

`Bin` must be a `bin`.

Example