//! Reading from stream helper.
use Error;
use Read;
/// Loads data from stream either in portions of 1024 bytes until an end of data or the limit is
/// reached or an exact amount of bytes if `data_length` is not `None`.
///
/// If a limit is reached Error::TooBig is returned.