chickadee » buffer-ports » open-input-buffer

open-input-buffer THING #!optional LENGTH STARTprocedure

Creates and returns an input port. THING may be a string, blob, SRFI-4 number vector, foreign pointer, memory mapped file or locative. Reading from the port will read the contents of the data area designated by THING. The option LENGTH and START arguments can be used to limit the length of the data and the starting position.

If THING is a pointer, locative or memory mapped file, then LENGTH must be specified and will not be checked for being valid.