]> gitweb.factorcode.org Git - factor.git/blob - core/io/encodings/string/string.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / core / 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 ;