IO.Stream
IO.Stream
Defines an IO.Stream
struct returned by IO.stream/2
and IO.binstream/2
.
The following fields are public:
-
device
- the IO device -
raw
- a boolean indicating if bin functions should be used -
line_or_bytes
- if reading should read lines or a given amount of bytes
It is worth noting that an IO stream has side effects and every time you go over the stream you may get different results.
Summary
Types
Types
t()
t() :: %IO.Stream{device: term, line_or_bytes: term, raw: term}
© 2012–2017 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.4.5/IO.Stream.html