trivial-gray-streams
2024-10-12
Compatibility layer for Gray Streams (see http://www.cliki.net/Gray%20streams).
trivial-gray-streams
====================
Gray streams is an interface proposed for inclusion with ANSI CL
by David N. Gray in Issue STREAM-DEFINITION-BY-USER
(http://www.nhplace.com/kent/CL/Issues/stream-definition-by-user.html).
The proposal did not make it into ANSI CL, but most popular
CL implementations implement this facility anyway.
This system provides an extremely thin compatibility layer for gray
streams.
How to use it
=============
Use the package TRIVIAL-GRAY-STREAMS to refer Gray stream
classes to inherit from, generic functions to implement.
Extensions
==========
The Gray proposal was made before the ANCI CL standard was finalized,
and was based on the Common Lisp The Language book.
The book does not have cl:file-position, cl:read-sequence, cl:write-sequence
functions. That's why (we think) the Gray proposal does not specify
their counterparts: stream-file-position, stream-read-sequence, stream-write-sequence.
trivial-gray-streams supports these functions:
Generic function STREAM-READ-SEQUENCE (stream sequence start end &key)
Generic function STREAM-WRITE-SEQUENCE (stream sequence start end &key)
Notice that we use two required arguments and allow additional
keyword arguments. Your methods on these function should have
compliant lambda lists:
(stream sequence start end &key)
Generic function STREAM-FILE-POSITION (stream) => file position
Generic function (SETF STREAM-FILE-POSITION) (position-spec stream) => successp
Dependencies (0)
Dependents (80)
- able
- archive
- babel
- bitio
- bodge-utilities
- chunga
- circular-streams
- cl-async
- cl-docutils
- cl-fix
- cl-indentify
- cl-liballegro
- cl-libssh2
- cl-lzlib
- cl-markless
- cl-octet-streams
- cl-openstack-client
- closure-common
- cl-plumbing
- cl-rfc4251
- cl-rsvg2
- cl-smt-lib
- cl+ssl
- cl-steamworks
- cl-tar-file
- cl-unix-sockets
- cl-zstd
- coalton
- croatoan
- cserial-port
- cxml
- decompress
- depot
- dexador
- diff
- everblocking-stream
- fast-io
- fiasco
- flexi-streams
- fsocket
- fxml
- graylex
- gtk-tagged-streams
- gzip-stream
- hemlock
- http2
- http-body
- iclendar
- id3v2
- imago
- jzon
- lack
- lfarm
- lisp-preprocessor
- markup
- mcclim
- memory-regions
- minilem
- ndebug
- nibbles-streams
- pounds
- qbase64
- qmynd
- qtools-ui
- redirect-stream
- rove
- salza2
- schannel
- scriptl
- snmp
- spinneret
- testbild
- trivial-bit-streams
- trivial-ssh
- try
- utf8-input-stream
- vivid-colors
- with-c-syntax
- yason
- zip