re-add fast>string to win32 io -- don't know where else to put it in library/
parent
952ec8cca0
commit
68973b1a51
|
@ -30,6 +30,10 @@ TUPLE: win32-duplex-stream ;
|
||||||
dup win32-stream-timeout
|
dup win32-stream-timeout
|
||||||
[ millis + swap set-win32-stream-cutoff ] [ drop ] if* ;
|
[ millis + swap set-win32-stream-cutoff ] [ drop ] if* ;
|
||||||
|
|
||||||
|
: fast>string ( sbuf -- string )
|
||||||
|
dup length over underlying length number=
|
||||||
|
[ underlying ] [ >string ] if ; inline
|
||||||
|
|
||||||
! Write
|
! Write
|
||||||
: flush-output ( stream -- )
|
: flush-output ( stream -- )
|
||||||
dup update-timeout
|
dup update-timeout
|
||||||
|
|
Loading…
Reference in New Issue