]> gitweb.factorcode.org Git - factor.git/commitdiff
io.streams.byte-array: implement stream-tell for byte-vector.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 19 Feb 2018 17:46:18 +0000 (09:46 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 21 Feb 2018 23:05:20 +0000 (15:05 -0800)
core/io/streams/byte-array/byte-array.factor

index d4523838eedcbd8c25fc5817ff6715e0f71c7bc3..d37a8a7490457d377e3ecd1219772745812fb88e 100644 (file)
@@ -7,6 +7,7 @@ IN: io.streams.byte-array
 
 INSTANCE: byte-vector output-stream
 M: byte-vector stream-element-type drop +byte+ ; inline
+M: byte-vector stream-tell length ; inline
 
 : <byte-writer> ( encoding -- stream )
     512 <byte-vector> swap <encoder> ; inline