Mercurial > projects > dwt-linux
comparison dwt/dwthelper/InflaterInputStream.d @ 271:d472fae79005
Fix: compile errors
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:41:30 +0200 |
parents | e10de397beb1 |
children | 9d67c3170a58 |
comparison
equal
deleted
inserted
replaced
270:58ef057b3e9d | 271:d472fae79005 |
---|---|
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 version(TANGOSVN) { |
11 import tango.io.Conduit; | 11 import tango.io.Conduit; |
12 } | 12 } |
13 class InputStreamWrapper : tango.io.model.IConduit.InputStream { | 13 class InputStreamWrapper : tango.io.model.IConduit.InputStream { |
14 | 14 |
15 dwt.dwthelper.InputStream.InputStream istr; | 15 dwt.dwthelper.InputStream.InputStream istr; |
20 | 20 |
21 uint read (void[] dst){ | 21 uint read (void[] dst){ |
22 int res = istr.read( cast(byte[])dst ); | 22 int res = istr.read( cast(byte[])dst ); |
23 return res; | 23 return res; |
24 } | 24 } |
25 version(TANGOSVN) | 25 version(TANGOSVN) { |
26 void[] load (void[] dst = null) { | 26 void[] load (void[] dst = null) { |
27 return Conduit.load (this, dst); | 27 return Conduit.load (this, dst); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |