package iostream
Module Iostream.In_bufSource
Buffered input stream.
A mixin to implement a buffered input by only providing a refill method. Add a close method and it's good to go.
Create a new buffered input stream.
Read from the given buffer.
Wrap a standard input channel.
fill_buffer bic returns a slice into bic's internal buffer, and ensures it's empty only if bic.ic is empty.
consume bic n consumes n bytes from bic. Precondition: n <= get_len bic, ie. one cannot consume bytes that have not yet been obtained via fill_buffer or fill_and_get.
Read the whole content into the given buffer.
input_all ic reads the whole content of ic into a string.
Read a line from the input. Return None if the stream is empty.