]> gitweb.factorcode.org Git - factor.git/blob - basis/io/encodings/string/string.factor
Create basis vocab root
[factor.git] / basis / io / encodings / string / string.factor
1 ! Copyright (C) 2008 Daniel Ehrenberg.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: io io.streams.byte-array ;
4 IN: io.encodings.string
5
6 : decode ( byte-array encoding -- string )
7     <byte-reader> contents ;
8
9 : encode ( string encoding -- byte-array )
10     [ write ] with-byte-writer ;