# Method Stdio.Buffer()->input_from()

Method input_from

  `int(-1..) input_from(Stdio.Stream f, int|void nbytes)`

Description

  Read data from f into this buffer. If nbytes is not specified, read until there is no more data to read (currently).

  Returns the amount of data that was read, or `-1` on read error.

Note

  Please note that this funcition will read all data from the filedescriptor unless it's set to be non-blocking.