Handbook
Glossary
output-port
Factor handbook
»
Input and output
»
Non-blocking I/O implementation
Prev:
<input-port> ( handle -- input-port )
Next:
<output-port> ( handle -- output-port )
Vocabulary
io
.
ports
Class description
The class of ports implementing the output stream protocol.
Definition
IN:
io.ports
TUPLE:
output-port
<
buffered-port
;
Methods
USING:
accessors
combinators
destructors
io.ports
io.ports.private
kernel
;
M:
output-port
dispose*
[
{
[
handle>>
&dispose
drop
]
[
buffer>>
&dispose
drop
]
[
port-flush
]
[
handle>>
shutdown
]
}
cleave
]
with-destructors
;
USING:
destructors
io
io.ports
io.ports.private
;
M:
output-port
stream-flush
check-disposed
port-flush
;
USING:
accessors
destructors
io
io.ports
io.ports.private
kernel
;
M:
output-port
stream-seek
check-disposed
do-seek-relative
[
stream-flush
]
[
handle>>
seek-handle
]
bi
;
USING:
destructors
io
io.ports
io.ports.private
math
;
M:
output-port
stream-tell
check-disposed
port-tell
+
;
USING:
alien
destructors
io
io.ports
io.ports.private
kernel
math
;
M:
output-port
stream-write
[
dup
byte-length
integer>fixnum-strict
]
dip
check-disposed
0
port-write
;
USING:
accessors
destructors
io
io.buffers
io.ports
kernel
;
M:
output-port
stream-write1
check-disposed
1
over
wait-to-write
buffer>>
buffer-write1
;
inline