|
superclass: object% |
constructor
(make-object editor-stream-in% base)
→ (is-a?/c editor-stream-in%) base : (is-a?/c editor-stream-in-base%)
method
(send an-editor-stream-in get v) → (is-a?/c editor-stream-in%)
v : (box/c exact-integer?) (send an-editor-stream-in get v) → (is-a?/c editor-stream-in%) v : (box/c real?)
The v box is filled with the next integer or floating-point value in the stream.
method
(send an-editor-stream-in get-bytes [len]) → (or/c bytes? #f)
len : (or/c (box/c exact-nonnegative-integer?) #f) = #f
The len box is filled with the length of the byte string plus one (to indicate the terminator), unless len is #f.
method
(send an-editor-stream-in get-exact) → exact-integer?
method
→ (is-a?/c editor-stream-in%) v : (box/c exact-integer?)
method
(send an-editor-stream-in get-fixed-exact) → exact-integer?
method
(send an-editor-stream-in get-inexact) → real?
method
(send an-editor-stream-in get-unterminated-bytes [len])
→ (or/c bytes? #f) len : (or/c (box/c exact-nonnegative-integer?) #f) = #f
Reading from a bad stream returns #f or #"".
Note that when put is not given a byte length, it includes an extra byte for a nul terminator; use get-bytes to read such byte strings.
The len box is filled with the length of the byte string, unless len is #f.
method
pos : exact-nonnegative-integer?
method
(send an-editor-stream-in remove-boundary) → void?
method
(send an-editor-stream-in set-boundary n) → void?
n : exact-nonnegative-integer?
Boundaries help keep a subroutine from reading too much data leading to confusing errors. However, a malicious subroutine can call remove-boundary on its own.
method
n : exact-nonnegative-integer?
method
(send an-editor-stream-in tell) → exact-nonnegative-integer?