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