Mercurial > projects > dwt-addons
view dwtx/dwtxhelper/StringReader.d @ 176:ed80c5c2b550
rm unneeded sync
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 12 Sep 2008 11:25:56 +0200 |
parents | 1a5b8f8129df |
children |
line wrap: on
line source
module dwtx.dwtxhelper.StringReader; import dwt.dwthelper.utils; class StringReader : Reader { String str; this( String str ){ implMissing(__FILE__,__LINE__); this.str = str; } public override int read(char[] cbuf, int off, int len){ cbuf[ off .. off+len ] = str[ 0 .. len ]; str = str[ len .. $ ]; return len; } public override void close(){ } }