Readable
trait Readable[t: Type]SourceTrait for types that can be read from.
Associated Types
type Aef: EffSourceEffect associated with reading from the resource.
type Elm: TypeSourceType of each element that can be read from the resource.
Instances
type Elm = atype Aef = rr + Aef[t]type Elm = Chartype Aef = Aef[t] + IO + rrSignatures
def read(buffer: Array[Elm[t], r], reader: t): Result[IoError, Int32] \ r + Aef[t] with Readable[t]§ SourceReads k elements from the resource and writes them into b.
Returns Ok(k) to signify that k bytes were successfully read and written to b.
Guarantees that 0 <= k <= length(b).
Returns Err(e) if some underlying I/O error occurs.