chickadee » srfi-4 » read-u8vector

read-u8vector #!optional LENGTH PORTprocedure

Reads LENGTH bytes from the PORT and returns a fresh u8vector or less if end-of-file is encountered. PORT defaults to the value of (current-input-port).

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