Generic interface for objects that can read data into a provided memory.
This interface allows external objects to transparently monitor for new data and as it to be read into a provided memory slice.
Calls to Efl.Io.Reader.read may or may not block, that's not up to this interface to specify. The user can check based on Efl.Io.Reader.eos property and signal if the stream reached an end, with event "can_read,changed" or property Efl.Io.Reader.can_read to known whenever a read would have data to return.
can_read (get, set)
truewill notify Efl.Io.Reader.read can be called without blocking or failing.
Eina_Bool efl_io_reader_can_read_get(const Eo *obj); void efl_io_reader_can_read_set(Eo *obj, Eina_Bool can_read);
eos (get, set)
truewill notify end of stream.
Eina_Bool efl_io_reader_eos_get(const Eo *obj); void efl_io_reader_eos_set(Eo *obj, Eina_Bool is_eos);
Reads data into a pre-allocated buffer.
Eina_Error efl_io_reader_read(Eo *obj, Eina_Rw_Slice rw_slice);
Notifies can_read property changed.
Notifies end of stream, when property is marked as true.