comparison dwt/dwthelper/InflaterInputStream.d @ 262:e10de397beb1

ADD version TANGOSVN
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 15:33:12 +0200
parents 116d23207a86
children d472fae79005
comparison
equal deleted inserted replaced
261:edcf78db8722 262:e10de397beb1
5 5
6 public import dwt.dwthelper.InputStream; 6 public import dwt.dwthelper.InputStream;
7 import dwt.dwthelper.utils; 7 import dwt.dwthelper.utils;
8 import tango.io.Stdout; 8 import tango.io.Stdout;
9 import tango.io.compress.ZlibStream; 9 import tango.io.compress.ZlibStream;
10 10 version(TANGOSVN)
11 import tango.io.Conduit;
12 }
11 class InputStreamWrapper : tango.io.model.IConduit.InputStream { 13 class InputStreamWrapper : tango.io.model.IConduit.InputStream {
12 14
13 dwt.dwthelper.InputStream.InputStream istr; 15 dwt.dwthelper.InputStream.InputStream istr;
14 16
15 this( dwt.dwthelper.InputStream.InputStream istr ){ 17 this( dwt.dwthelper.InputStream.InputStream istr ){
18 20
19 uint read (void[] dst){ 21 uint read (void[] dst){
20 int res = istr.read( cast(byte[])dst ); 22 int res = istr.read( cast(byte[])dst );
21 return res; 23 return res;
22 } 24 }
25 version(TANGOSVN)
26 void[] load (void[] dst = null) {
27 return Conduit.load (this, dst);
28 }
29 }
30
23 31
24 tango.io.model.IConduit.InputStream clear (){ 32 tango.io.model.IConduit.InputStream clear (){
25 return this; 33 return this;
26 } 34 }
27 35