Results for “Std.Io.Reader”
5 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Io.Reader
A file open for reading, named by a token the runtime gave out.
- Std.Io.foldChunks
&Std.Io.Reader -> T -> fn(T, Bytes) -> T -> Result[T, Std.Io.IoError]Combine every chunk of a file into one value, holding one chunk at a time.
- Std.Io.forEachChunk
&Std.Io.Reader -> fn(Bytes) -> () -> Result[(), Std.Io.IoError]Run an action for every chunk, keeping nothing.
- Std.Io.readFrom
&Std.Io.Reader -> Int -> Result[Option[Bytes], Std.Io.IoError]The next bytes from a reader, or nothing when the input has ended.
- Std.Io.withReader
Str -> fn(Std.Io.Reader) -> Result[T, Std.Io.IoError] -> Result[T, Std.Io.IoError]Read a file through a handle the runtime owns for the length of the call.
