Next: , Up: SRFI-56


39.18.1 SRFI-56 Port extensions

— Scheme Procedure: binary-port? obj

Return #t if obj is a port that supports binary operations.

— Scheme Procedure: character-port? obj

Return #t if obj is a port that supports character operations.

— Scheme Procedure: open-binary-input-file filename

Return an input port for filename such that binary-port? applied to it returns #t.

— Scheme Procedure: open-binary-output-file filename

Return an output port for filename such that binary-port? applied to it returns #t.

— Scheme Procedure: call-with-binary-input-file filename proc

Open binary input port to filename and call proc with it.

— Scheme Procedure: call-with-binary-output-file filename proc

Open binary output port to filename and call proc with it.

— Scheme Procedure: with-input-from-binary-file filename thunk

Arrange for input to be read from a binary port open on filename. Call thunk.

— Scheme Procedure: with-output-to-binary-file filename thunk

Arrange for output to be written to a binary port open on filename. Call thunk.