Mercurial > projects > dwt-linux
comparison dwt/dwthelper/InflaterInputStream.d @ 276:9d67c3170a58 Release-1
Removed version=TANGOSVN for release 0.99.7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Jul 2008 02:52:25 +0200 |
parents | d472fae79005 |
children | 9995e4a9d2ee |
comparison
equal
deleted
inserted
replaced
275:5983f0f11896 | 276:9d67c3170a58 |
---|---|
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 version(TANGOSVN) { | 10 import tango.io.Conduit; |
11 import tango.io.Conduit; | 11 |
12 } | |
13 class InputStreamWrapper : tango.io.model.IConduit.InputStream { | 12 class InputStreamWrapper : tango.io.model.IConduit.InputStream { |
14 | 13 |
15 dwt.dwthelper.InputStream.InputStream istr; | 14 dwt.dwthelper.InputStream.InputStream istr; |
16 | 15 |
17 this( dwt.dwthelper.InputStream.InputStream istr ){ | 16 this( dwt.dwthelper.InputStream.InputStream istr ){ |
20 | 19 |
21 uint read (void[] dst){ | 20 uint read (void[] dst){ |
22 int res = istr.read( cast(byte[])dst ); | 21 int res = istr.read( cast(byte[])dst ); |
23 return res; | 22 return res; |
24 } | 23 } |
25 version(TANGOSVN) { | 24 |
26 void[] load (void[] dst = null) { | 25 void[] load (void[] dst = null) { |
27 return Conduit.load (this, dst); | 26 return Conduit.load (this, dst); |
28 } | 27 } |
29 } | |
30 | |
31 | 28 |
32 tango.io.model.IConduit.InputStream clear (){ | 29 tango.io.model.IConduit.InputStream clear (){ |
33 return this; | 30 return this; |
34 } | 31 } |
35 | 32 |