chickadee » srfi-4 » read-u8vector

read-u8vector #!optional LENGTH PORTprocedure

Reads LENGTH bytes from the PORT and returns a fresh u8vector, or as many as are available before end-of-file is encountered. PORT defaults to the value of (current-input-port). If no bytes are available before the end-of-file, #!eof is returned.

If LENGTH is #f, the vector will be filled completely until end-of-file is reached.