io: remove each-block* because it's not useful
parent
5e2d95ebb2
commit
d2855bbf09
|
@ -110,16 +110,9 @@ PRIVATE>
|
||||||
: each-stream-block ( ... stream quot: ( ... block -- ... ) -- ... )
|
: each-stream-block ( ... stream quot: ( ... block -- ... ) -- ... )
|
||||||
swap [ 65536 swap stream-read-partial ] curry each-morsel ; inline
|
swap [ 65536 swap stream-read-partial ] curry each-morsel ; inline
|
||||||
|
|
||||||
: each-stream-block* ( ... buffer stream quot: ( ... n buffer -- ... ) -- ... )
|
|
||||||
-rot [ [ length ] keep ] dip
|
|
||||||
[ [ stream-read-partial-unsafe ] curry keep ] 3curry each-morsel ; inline
|
|
||||||
|
|
||||||
: each-block ( ... quot: ( ... block -- ... ) -- ... )
|
: each-block ( ... quot: ( ... block -- ... ) -- ... )
|
||||||
input-stream get swap each-stream-block ; inline
|
input-stream get swap each-stream-block ; inline
|
||||||
|
|
||||||
: each-block* ( ... buffer quot: ( ... n ptr -- ... ) -- ... )
|
|
||||||
input-stream get swap each-stream-block* ; inline
|
|
||||||
|
|
||||||
: stream-contents ( stream -- seq )
|
: stream-contents ( stream -- seq )
|
||||||
[
|
[
|
||||||
[ [ ] collector [ each-stream-block ] dip { } like ]
|
[ [ ] collector [ each-stream-block ] dip { } like ]
|
||||||
|
|
Loading…
Reference in New Issue