Next Previous Up Top Contents Index

5.11 The STREAMS module

make string-stream-class

G.f. method

Summary

Creates and opens a stream over a string.

Signature

make string-stream-class #key contents direction start end 
=> string-stream-instance

Arguments

string-stream-class

The class <string-stream>.

contents
An instance of <string>.

direction
One of #"input", #"output", or #"input-output". Default value: #"input".

start
An instance of <integer>. Default value: 0.

end
An instance of <integer>. Default value: contents.size.

Values

string-stream-instance

An instance of <string-stream>.

Library

io

Module

streams

Description

Creates and opens a stream over a string.

This method returns an instance of <string-stream>. If supplied, contents describes the contents of the stream. The direction, start, and end init-keywords are as for make on <sequence-stream>.

Example

let stream = make(<string-stream>, 
                  contents: "here is a sequence");

See also

make sequence-stream-class, page 76

<string-stream>, page 102


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index