]> gitweb.factorcode.org Git - factor.git/blobdiff - unmaintained/cryptlib/streams/streams.factor
tools.test: Make the flag public. Finish porting tester changes to fuzzer.
[factor.git] / unmaintained / cryptlib / streams / streams.factor
index 9473e6063f9f49aefcb062136fde1d30dc9997d1..929143f7963c71b979fd82457ac3cf3c8722184c 100644 (file)
@@ -39,7 +39,7 @@ TUPLE: crypt-stream handle eof? ;
 
 : (refill) ( stream -- err )
     dup [ crypt-stream-handle ] keep [ buffer@ ] keep buffer-capacity
-    "int" <c-object> dup >r cryptPopData r> *int rot n>buffer ;
+    "int" <c-object> dup >r cryptPopData r> *int rot buffer+ ;
 
 : refill ( stream -- )
     dup (refill) check-read swap set-crypt-stream-eof? ;
@@ -61,13 +61,13 @@ M: crypt-stream stream-read1 ( stream -- ch/f )
     1 swap stream-read [ first ] [ f ] if* ;
 
 : read-until-step ( seps stream -- sep/f )
-    dup refill 2dup buffer-until [ swap % 2nip ]
+    dup refill 2dup buffer-read-until [ swap % 2nip ]
     [ 
         % dup crypt-stream-eof? [ 2drop f ] [ read-until-step ] if
     ] if* ;
 
 M: crypt-stream stream-read-until ( seps stream -- str/f sep/f )
-    2dup buffer-until [ >r 2nip r> ] [
+    2dup buffer-read-until [ >r 2nip r> ] [
         [ % read-until-step ] "" make f like swap
     ] if* ;