6.52. kink/io/BUFFER_INPUT

6.52.1. BUFFER_INPUT.new(Wrapped_input ...[Max_buf_size])

`new` returns a `input` which performs userspace buffering in front of the underlying `Wrapped_input`.

Bytes read from `Wrapped_input` will be once buffered before provided to the caller.

`Max_buf_size` is used as the preferred buffer size. The actual buffer size will not exceed `Max_buf_size`. If not specified, a default size will be used.

Preconditions

`Wrapped_input` must be an `input`.

`Max_buf_size` must be a positive int `num`.