diff options
author | Andy Wingo <wingo@pobox.com> | 2014-02-07 14:42:40 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-02-07 14:42:40 +0100 |
commit | e4eb0e39b4bbfa321fd30376ebdda32e931b60f7 (patch) | |
tree | c4e20718cf0fa5f76da29f50f1297c678b3d725c /doc/ref/api-io.texi | |
parent | e140d85d5346f6cc3bd8b9f3954b063e159a2708 (diff) | |
parent | 8ca97482b01cf1a6aa538cc5a2d1f71fb60f080c (diff) | |
download | guile-e4eb0e39b4bbfa321fd30376ebdda32e931b60f7.tar.gz |
Merge commit '8ca97482b01cf1a6aa538cc5a2d1f71fb60f080c'
Conflicts:
libguile/r6rs-ports.c
Diffstat (limited to 'doc/ref/api-io.texi')
-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 5ca3506a9..8b44224dc 100644 --- a/doc/ref/api-io.texi +++ b/doc/ref/api-io.texi @@ -1792,6 +1792,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: |