superclass: object% |
An editor-stream-in-base% object is used by an editor-stream-in% object to perform low-level reading of data.
The editor-stream-in-base% class is never instantiated directly, but the derived class editor-stream-in-bytes-base% can be instantiated. New derived classes must override all of the methods described in this section.
Returns #t if there has been an error reading from the stream, #f otherwise.
→ nonnegative-exact-integer? |
data : (and/c bytes? (not/c immutable?)) |
Reads characters to fill the supplied vector. The return value is the number of characters read, which may be less than the number requested if the stream is emptied. If the stream is emptied, the next call to bad? must return #t.
pos : nonnegative-exact-integer? |
Moves to the specified absolute position in the stream.
n : nonnegative-exact-integer? |
Skips past the next n characters in the stream.
→ nonnegative-exact-integer? |
Returns the current stream position.