diff --git a/library/io/windows/stream.factor b/library/io/windows/stream.factor index bf887ec3ad..9cf9e54950 100644 --- a/library/io/windows/stream.factor +++ b/library/io/windows/stream.factor @@ -30,6 +30,10 @@ TUPLE: win32-duplex-stream ; dup win32-stream-timeout [ millis + swap set-win32-stream-cutoff ] [ drop ] if* ; +: fast>string ( sbuf -- string ) + dup length over underlying length number= + [ underlying ] [ >string ] if ; inline + ! Write : flush-output ( stream -- ) dup update-timeout