Page 352 Table of Contents Index Page 354
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



APPENDIX C. COMMON LISP STREAMS


C.5 Binary Streams

Binary streams can be created by defining a class that includes either fundamental-binary-
input-stream
or fundamental-binary-output-stream (or both) and defining a method for
stream-element-type and for one or both of the following generic functions.

=> stream-read-byte stream [Generic Function]
Returns either an integer, or the symbol :eof if stream is at end-of-file. This is used by read-
byte
.

=> stream-write-byte stream integer [Generic Function]
Writes integer to stream, and returns integer as the result. This is used by write-byte.


Page 352 Table of Contents Index Page 354
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E