chickadee » srfi-4 » read-u8vector!

read-u8vector! LENGTH U8VECTOR #!optional PORT STARTprocedure

Reads LENGTH bytes from the PORT writing the read input into U8VECTOR beginning at START (or 0 if not given). 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. This procedure returns the number of bytes read.