{PeekableInputStream-of t:Type} (class)
hidden abstract shared PeekableInputStream-of
Package: CURL.IO.STREAM
This item is unsupported and reserved for internal use.

Properties
end-of-stream?:Returns true if the next call to self.read-one will return a true eof? return value.
accessor public PeekableInputStream-of.end-of-stream?:bool
Methods
peek-one:Returns the next item on self's input stream without removing it from the stream.
public abstract {PeekableInputStream-of.peek-one}:(val:t, eof?:bool)
peek-one-any:Returns the next item on self's input stream without removing it from the stream.
public {PeekableInputStream-of.peek-one-any}:(val:any, eof?:bool)
Methods inherited from Object: object-describe, object-describe-for-debugging, object-serialize

Property Details
end-of-stream? (accessor)
accessor public PeekableInputStream-of.end-of-stream?:bool

Returns true if the next call to self.read-one will return a true eof? return value.

Notes

This method may block -- uses self.peek-one to access the next object in the stream.


Method Details
peek-one (method)
public abstract {PeekableInputStream-of.peek-one}:(val:t, eof?:bool)

Returns the next item on self's input stream without removing it from the stream.

Returns

The first return value is the next item on self's input stream. The second return value is true iff self.end-of-stream? is true; in that case, the first value returned is null / 0 as appropriate.

Description

This method will block when self is still open but has no data available.

Notes

Error if self is not currently open and readable.


peek-one-any (method)
public {PeekableInputStream-of.peek-one-any}:(val:any, eof?:bool)

Returns the next item on self's input stream without removing it from the stream.

Returns

The first return value is the next item on self's input stream. The second return value is true iff self.end-of-stream? is true; in that case, the first value returned is null / 0 as appropriate.

Description

This method will block when self is still open but has no data available.

Notes

Error if self is not currently open and readable.