Next Previous Up Top Contents Index

5.11 The STREAMS module

make byte-string-stream-class

G.f. method

Summary

Creates and opens a stream over a byte string.

Signature

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

Arguments

byte-string-stream-class

The class <byte-string-stream>.

contents
An instance of <byte-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

byte-string-stream-instance

An instance of <byte-string-stream>.

Library

io

Module

streams

Description

Creates and opens a stream over a byte string.

This method returns a new instance of <byte-string-stream>.

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

Example

let stream = make(<byte-string-stream>, 
                  direction: #"output");

See also

<byte-string-stream>, page 63

make sequence-stream-class, page 76


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index