|
superclass: object% |
constructor
(make-object editor-stream-out% base)
→ (is-a?/c editor-stream-out%) base : (is-a?/c editor-stream-out-base%)
method
pos : exact-nonnegative-integer?
method
(send an-editor-stream-out pretty-finish) → void?
method
(send an-editor-stream-out pretty-start) → void?
method
→ (is-a?/c editor-stream-out%) n : exact-nonnegative-integer? v : bytes? (send an-editor-stream-out put v) → (is-a?/c editor-stream-out%) v : bytes? (send an-editor-stream-out put v) → (is-a?/c editor-stream-out%) v : exact-integer? (send an-editor-stream-out put v) → (is-a?/c editor-stream-out%) v : real?
Writes v, or n bytes of v.
When n is supplied with a byte-string v, use get-unterminated-bytes to read the bytes later. This is the recommended way to write out bytes to be easily read in later; use get-unterminated-bytes to read the bytes back in.
If n is not supplied and v is a byte string, then for historical reasons, the actual number of bytes written includes a #\nul terminator, so use get-bytes instead of get-unterminated-bytes to read the bytes later.
If v is a real?, but not an exact-integer?, then it is converted to an inexact number as part of the process of writing it.
method
→ (is-a?/c editor-stream-out%) v : (integer-in -9999999999 99999999999)
Numbers written to a stream with put-fixed must be read with get-fixed-exact or get-fixed.
method
(send an-editor-stream-out put-unterminated v)
→ (is-a?/c editor-stream-out%) v : bytes?
method
(send an-editor-stream-out tell) → exact-nonnegative-integer?