Composed External Formats
Example: DOS Files vs. Unix Files
… <cr> <lf> …
… <lf> …
Stream d
Stream u
== file-position pointer
(stream-external-format d) ? crlf-ef-base
(read-char d) ? #\newline
(file-position d) ? = + 2
(stream-external-format u) ? ef-base
(read-char u) ? #\newline
(file-position d) ? = + 1
Previous slide
Next slide
Back to first slide
View graphic version