diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ref/api-io.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi index f1170eb2c..02d92a2d7 100644 --- a/doc/ref/api-io.texi +++ b/doc/ref/api-io.texi @@ -1816,6 +1816,10 @@ indicating the position of the next byte is to read. Finally, if @var{close} is not @code{#f}, it must be a thunk. It is invoked when the custom binary input port is closed. +The returned port is fully buffered by default, but its buffering mode +can be changed using @code{setvbuf} (@pxref{Ports and File Descriptors, +@code{setvbuf}}). + Using a custom binary input port, the @code{open-bytevector-input-port} procedure could be implemented as follows: |