class Reader[t: Type]Source
A trait for types which are resources that can be accessed as bytes.
k bytes from the underlying resource and writes them into
Ok(k) to signify that
k bytes was successfully read and written to
0 <= k < length(b).
Err(e) if some underlying I/O error occurs.