Next: I/O Extensions, Previous: Venerable Port Interfaces, Up: Input and Output [Contents][Index]
Guile’s C interfaces provides some niceties for sending and receiving bytes and characters in a way that works better with C.
Read up to size bytes from port and store them in buffer. The return value is the number of bytes actually read, which can be less than size if end-of-file has been reached.
Note that as this is a binary input procedure, this function does not
update port-line
and port-column
(see Textual I/O).
Write size bytes at buffer to port.
Note that as this is a binary output procedure, this function does not
update port-line
and port-column
(see Textual I/O).
Like scm_c_read
and scm_c_write
, but reading into or
writing from the bytevector bv. count indicates the byte
index at which to start in the bytevector, and the read or write will
continue for count bytes.
Like unget-bytevector
, unget-byte
, and unget-char
,
respectively. See Textual I/O.
Write a string to port. In the first case, the
scm_t_uint8*
buffer is a string in the latin-1 encoding. In the
second, the scm_t_uint32*
buffer is a string in the UTF-32
encoding. These routines will update the port’s line and column.
Next: I/O Extensions, Previous: Venerable Port Interfaces, Up: Input and Output [Contents][Index]