File.ByteReader
read
defn
(Fn [(Ref File a), Int] (Result (Array Byte) String))
(read file n)
Reads an array of bytes of length n from a file. This is a convenient wrapper that fixes the returntype of File.read to (Array Byte)
read-byte
defn
(Fn [(Ptr FILE)] (Result Byte String))
(read-byte file)
Read a single byte from a file.
read-bytes
defn
(Fn [(Ref File a), Int] (Result (Array Byte) String))
(read-bytes f n)
Read n bytes from a file.